mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
feat: Github Pages
This commit is contained in:
parent
76790fc486
commit
0ed7b10035
1 changed files with 40 additions and 0 deletions
40
.github/workflows/pages.yaml
vendored
Normal file
40
.github/workflows/pages.yaml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
name: Deploy visualizer to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [data]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
steps:
|
||||
- name: Checkout data branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: data
|
||||
|
||||
- name: Configure Pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
- name: Upload site artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: viz
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
Loading…
Reference in a new issue