Skip to content

Merge pull request #209 from swup/feat/demos-on-glitch #597

Merge pull request #209 from swup/feat/demos-on-glitch

Merge pull request #209 from swup/feat/demos-on-glitch #597

Workflow file for this run

name: Deploy to GH pages
on:
push:
branches: [ "master" ]
repository_dispatch:
types: [ "redeploy_docs" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
id: pages
- name: Configure GH pages
uses: actions/configure-pages@v3
- name: install
run: npm ci
- name: build
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
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