Skip to content

Commit 5db791f

Browse files
committed
Added publishing workflow
1 parent 92b7ccc commit 5db791f

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

.github/workflows/build-pr.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
container:
12+
image: ghcr.io/dash-industry-forum/dashif-specs:latest
13+
credentials:
14+
username: ${{ github.actor }}
15+
password: ${{ secrets.github_token }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
env:
21+
# Reset OPTS to empty to make sure we are not using
22+
# interactive mode in CI
23+
OPTS:
24+
run: make -f /tools/Makefile spec SRC=Guidelines-TimingModel.bs.md NAME=Timing-Model
25+
26+
- name: Archive
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: dist
30+
path: dist/

.github/workflows/publish.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
packages: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
container:
19+
image: ghcr.io/dash-industry-forum/dashif-specs:latest
20+
credentials:
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.github_token }}
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Build
27+
env:
28+
# Reset OPTS to empty to make sure we are not using
29+
# interactive mode in CI
30+
OPTS:
31+
run: make -f /tools/Makefile spec SRC=Guidelines-TimingModel.bs.md NAME=Timing-Model
32+
33+
- name: Archive
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: dist
37+
path: dist/
38+
39+
package:
40+
runs-on: ubuntu-latest
41+
needs: build
42+
steps:
43+
- uses: actions/download-artifact@v4
44+
with:
45+
name: dist
46+
path: dist
47+
- uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: dist
50+
51+
publish:
52+
runs-on: ubuntu-latest
53+
needs: package
54+
steps:
55+
- name: Deploy to GitHub Pages
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)