Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OliHarris authored Nov 3, 2023
1 parent 6af99e9 commit d382277
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
runs-on: ubuntu-latest
# the list of steps that the action will go through
steps:
- name: Publish github pages
- name: "Github Pages Deployment"
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
yarn deploy -u "github-actions-bot <[email protected]>"
if: ${{ github.ref == 'refs/heads/master' }} # only deploy master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_CLIENT_ID: ${{ secrets.VITE_CLIENT_ID }}
Expand Down

0 comments on commit d382277

Please sign in to comment.