Skip to content

Tagged Deploy GitHub Pages #6

Tagged Deploy GitHub Pages

Tagged Deploy GitHub Pages #6

Workflow file for this run

name: Tagged Deploy GitHub Pages
on:
push:
tags:
- "v*"
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm test
- run: npm run build
env:
CI: false
- uses: actions/upload-pages-artifact@v1
with:
path: build
# Deploy job
deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action