Skip to content

Merge pull request #173 from artichoke/dependabot/npm_and_yarn/npm-de… #15

Merge pull request #173 from artichoke/dependabot/npm_and_yarn/npm-de…

Merge pull request #173 from artichoke/dependabot/npm_and_yarn/npm-de… #15

Workflow file for this run

---
name: Publish
"on":
push:
branches:
- trunk
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
contents: read
pages: write
id-token: write
# Allow one concurrent deployment per branch
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
name: Build Site
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Install Node.js toolchain
uses: actions/[email protected]
with:
node-version: "lts/*"
- name: Install toolchain
run: npm ci
- name: Build Webapp
run: npm run build
- name: Upload artifact
uses: actions/[email protected]
with:
path: ./dist
# Deployment job
deploy:
name: GitHub Pages 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/[email protected]