Skip to content

Update GitHub Pages action #36

Update GitHub Pages action

Update GitHub Pages action #36

name: Deploy demo
on:
push:
branches: [main]
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run build
uses: actions/setup-node@v3
- run: cd airmail_site && yarn install && yarn build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'airmail_site/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4