Skip to content

beginnings of auth

beginnings of auth #37

Workflow file for this run

name: Publish site
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
cancel-in-progress: true
group: publish-site
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
always-auth: true
cache: npm
node-version-file: .nvmrc
registry-url: https://npm.pkg.github.com
scope: "@haliphax"
- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm ci --ignore-scripts
- name: Build site
env:
VITE_APP_CLIENT_ID: ${{ vars.VITE_APP_CLIENT_ID }}
VITE_APP_REALM_API: ${{ vars.VITE_APP_REALM_API }}
run: npm run build
- name: Relative URLs
run: sed -i -e 's/="\//="/g' html/*.html
- uses: actions/upload-pages-artifact@v3
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@v4