Skip to content

Commit

Permalink
GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
LachlanBWWright committed Nov 27, 2024
1 parent 4befce6 commit f907a5c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
name: Build
runs-on: ubuntu-latest

#work in frontend directory
defaults:
run:
working-directory: frontend

steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -27,23 +32,27 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./frontend/dist
path: ./dist

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
#work in frontend directory
defaults:
run:
working-directory: frontend

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./frontend/dist
path: ./dist

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/dist
publish_dir: ./dist

0 comments on commit f907a5c

Please sign in to comment.