Skip to content

Commit 0e22836

Browse files
committed
Publish Pages from release assets
1 parent 5041177 commit 0e22836

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/configure-pages@v5
23+
24+
- name: Prepare site
25+
shell: bash
26+
run: |
27+
set -euo pipefail
28+
mkdir -p site/auxiliary
29+
curl -L --fail \
30+
-o site/auxiliary/nabla-glow.svg \
31+
https://github.com/Devsh-Graphics-Programming/Nabla-Asset-Manifests/releases/download/pages-assets/nabla-glow.svg
32+
curl -L --fail \
33+
-o site/auxiliary/externaldata-flow-kitware.jpg \
34+
https://github.com/Devsh-Graphics-Programming/Nabla-Asset-Manifests/releases/download/pages-assets/externaldata-flow-kitware.jpg
35+
printf '%s\n' '<!doctype html><meta charset="utf-8"><title>Nabla Asset Manifests Pages</title>' > site/index.html
36+
touch site/.nojekyll
37+
38+
- uses: actions/upload-pages-artifact@v4
39+
with:
40+
path: site
41+
42+
deploy:
43+
needs: build
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
steps:
49+
- id: deployment
50+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)