Skip to content

Commit 59a13c5

Browse files
committed
Add workflow that build on PR submit
1 parent 8e88f03 commit 59a13c5

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/PROpened.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: PROpened
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
show-progress: false
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
cache: 'pip'
20+
- run: pip install -r requirements.txt
21+
22+
- name: Build
23+
env:
24+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
run: |
26+
cat >Makefile.inc <<EOF
27+
${{vars.MAKEFILE_INC}}
28+
EOF
29+
make
30+
mkdir output
31+
mv temp output/docs-output-${{github.event.number}}
32+
33+
- name: Save Output
34+
id: save-output-temp
35+
if: ${{ always() }}
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: docs-output-${{github.event.number}}
39+
path: |
40+
output
41+

0 commit comments

Comments
 (0)