Skip to content

Commit 19b11ec

Browse files
committed
- update deploy
1 parent f6e27dd commit 19b11ec

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/deploy.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,26 @@ jobs:
6868
working-directory: ./frontend
6969
run: npm run build
7070

71-
- name: List files
72-
run: ls -la ./frontend/dist
71+
- name: Upload build artifacts
72+
uses: actions/upload-artifact@v2
73+
with:
74+
name: dist-files
75+
path: ./frontend/dist
7376

7477
deploy-frontend:
7578
runs-on: ubuntu-latest
7679
needs: build-frontend
7780
if: github.ref == 'refs/heads/develop'
7881

7982
steps:
80-
- name: Checkout repository
81-
uses: actions/checkout@v2
83+
- name: Download build artifacts
84+
uses: actions/download-artifact@v2
85+
with:
86+
name: dist-files
8287

8388
- name: Deploy to GitHub Pages
8489
uses: JamesIves/github-pages-deploy-action@v4
8590
with:
8691
branch: develop
87-
folder: ./frontend/dist
92+
folder: dist
8893
clean: true

0 commit comments

Comments
 (0)