Skip to content

Commit

Permalink
ci: Deploy when syncing (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDewes authored Nov 12, 2023
1 parent 5ca8b5d commit ef7e0cc
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,26 @@ jobs:
git add .
# do not error if there is nothing to commit
git commit -m "chore: Sync data" && git push || true
yarn sass
yarn build
# Prevent GitHub from trying to use Jekyll
touch _site/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Build CSS
run: yarn sass

- name: Build with Eleventy
run: yarn build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}
path: ./_site

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit ef7e0cc

Please sign in to comment.