Skip to content

Commit af3ea95

Browse files
committed
[fix] 배포 아티팩트 압축 시 node_modules 및 git 관련 파일 제외
1 parent 76dc8f8 commit af3ea95

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/main_optimo.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
npm run test --if-present
3131
3232
- name: Zip artifact for deployment
33-
run: zip release.zip ./* -r
33+
run: zip -r release.zip . -x \"node_modules/*\" -x \"*.git*\" -x \"release.zip\"
3434

3535
- name: Upload artifact for deployment job
3636
uses: actions/upload-artifact@v4
@@ -41,9 +41,9 @@ jobs:
4141
deploy:
4242
runs-on: ubuntu-latest
4343
needs: build
44-
permissions:
45-
id-token: write #This is required for requesting the JWT
46-
contents: read #This is required for actions/checkout
44+
permissions:
45+
id-token: write #This is required for requesting the JWT
46+
contents: read #This is required for actions/checkout
4747

4848
steps:
4949
- name: Download artifact from build job
@@ -53,13 +53,13 @@ jobs:
5353

5454
- name: Unzip artifact for deployment
5555
run: unzip release.zip
56-
57-
- name: Login to Azure
58-
uses: azure/login@v2
59-
with:
60-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B67D1DCA498048A4A7445B52B44FB804 }}
61-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_AEA0206A1F87447FACEA341CCD841886 }}
62-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_16436821D87747AB8300806CC2D4BF94 }}
56+
57+
- name: Login to Azure
58+
uses: azure/login@v2
59+
with:
60+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B67D1DCA498048A4A7445B52B44FB804 }}
61+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_AEA0206A1F87447FACEA341CCD841886 }}
62+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_16436821D87747AB8300806CC2D4BF94 }}
6363

6464
- name: 'Deploy to Azure Web App'
6565
id: deploy-to-webapp

0 commit comments

Comments
 (0)