-
Notifications
You must be signed in to change notification settings - Fork 63
47 lines (42 loc) · 1.27 KB
/
gh-pages.yml
File metadata and controls
47 lines (42 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Forkdiff Github-Pages
permissions:
contents: read
pages: write
id-token: write
on:
workflow_dispatch:
push:
branches:
- seismic
jobs:
build:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build forkdiff
uses: "docker://protolambda/forkdiff:0.1.0"
with:
args: -repo=/github/workspace -fork=/github/workspace/fork.yaml -out=/github/workspace/index.html
# upload-pages-artifact action requires the files to be in a _site folder
- name: Prepare for deployment
run: |
mkdir -p _site
mv index.html _site/
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
# This needs to run in the github-pages environment to deploy successfully. For more info see:
# https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site
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@v4