Skip to content

Version Package

Version Package #4

Workflow file for this run

name: Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: yarn
- name: Install project dependencies
run: yarn install
- name: Prepare
run: |
mkdir public
cp index.html public
cp -rf lib public
cp -rf docs public
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1