Skip to content

Commit

Permalink
Update GitHub Pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenhp committed Feb 10, 2024
1 parent 67af710 commit dd808ae
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/continuous_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,33 @@ on:
push:
branches: [main]

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
release:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- uses: actions/setup-node@v3
- name: Run build
uses: actions/setup-node@v3

- run: cd airmail_site && yarn install && yarn build

- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./airmail_site/dist
path: 'airmail_site/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit dd808ae

Please sign in to comment.