Skip to content

fix: add upload artifact step (#76) #9

fix: add upload artifact step (#76)

fix: add upload artifact step (#76) #9

Workflow file for this run

name: Documentation
on:
push:
tags:
- 'v*'
jobs:
Documentation:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]
steps:
- uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: |
npm ci
- name: Build Docs
run: |
npm run build
npm run docs
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: dist/docs
Deploy:
needs: Documentation
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4