Skip to content

chore: fix cd

chore: fix cd #68

Workflow file for this run

name: CI
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
packages: read
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node and npm
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
registry-url: "https://npm.pkg.github.com"
- name: Install npm dependencies
run: "npm ci --ignore-scripts"
shell: bash
env:
NODE_AUTH_TOKEN: ${{ github.token }}
- name: Build with adapter static
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'build'
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@v1