Skip to content

Publish github page

Publish github page #2

Workflow file for this run

name: Publish github page
on:
## We can trigger this workflow manually from any branches
workflow_dispatch:
## We can trigger this workflow automatically from main branch
push:
branches: ["main"]
## Permissions to access the repository and writing the auth token
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy
run: |
npm install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1