Skip to content

Commit

Permalink
- update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jprogram committed Aug 19, 2024
1 parent f6e27dd commit 19b11ec
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,26 @@ jobs:
working-directory: ./frontend
run: npm run build

- name: List files
run: ls -la ./frontend/dist
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: dist-files
path: ./frontend/dist

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

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: dist-files

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: develop
folder: ./frontend/dist
folder: dist
clean: true

0 comments on commit 19b11ec

Please sign in to comment.