Skip to content

πŸ”– pre-release 0.0.7 #40

πŸ”– pre-release 0.0.7

πŸ”– pre-release 0.0.7 #40

Workflow file for this run

name: Publish site
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build site
run: |
npm run build
mkdir html
cp index.html dist/nubbins.min.css html/
sed -i -e "s/src\/index/nubbins.min/" html/index.html
- uses: actions/upload-pages-artifact@v2
with:
path: html/
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v2