-
Notifications
You must be signed in to change notification settings - Fork 2
95 lines (75 loc) · 2.27 KB
/
ci.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: ci
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths: [ "input/**" ]
pull_request:
branches: [ "main" ]
paths: [ "input/**" ]
env:
GH_TOKEN: ${{ github.token }}
jobs:
# ----------------------------------------------------------------------
convert-test-files:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
- run: gh release download wip --pattern 'gpc'
- run: chmod +x gpc
- run: ./gpc ./input/filelist.txt ./output
- run: rm gpc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: generated by gpc
commit_user_name: volkerdoerr
commit_user_email: noreply@cascade.de
commit_author: volkerdoerr
commit_options: '--signoff'
# ----------------------------------------------------------------------
update-tag:
runs-on: ubuntu-latest
needs: convert-files
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
with:
tag: "wip"
message: "rolling: work in progress"
force_push_tag: true
# ----------------------------------------------------------------------
build-website:
runs-on: ubuntu-latest
needs: update-tag
permissions:
contents: read
pages: write
id-token: write
steps:
# - uses: actions/checkout@v3
- run: gh release download wip --pattern 'gpc'
- run: chmod +x gpc
- run: ./gpc
#- uses: actions/checkout@v3
#- uses: actions/configure-pages@v2
#- uses: actions/jekyll-build-pages@v1
# with:
# source: output
# destination: ./_site
#- uses: actions/upload-pages-artifact@v1
# ----------------------------------------------------------------------
# deploy-website:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build-website
# permissions:
# contents: read
# pages: write
# id-token: write
# steps:
# - id: deployment
# uses: actions/deploy-pages@v1