Skip to content

Commit

Permalink
Add workflow that build on PR submit
Browse files Browse the repository at this point in the history
  • Loading branch information
gtjoseph committed Mar 14, 2024
1 parent 8e88f03 commit 59a13c5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/PROpened.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PROpened

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false

- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: 'pip'
- run: pip install -r requirements.txt

- name: Build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat >Makefile.inc <<EOF
${{vars.MAKEFILE_INC}}
EOF
make
mkdir output
mv temp output/docs-output-${{github.event.number}}
- name: Save Output
id: save-output-temp
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: docs-output-${{github.event.number}}
path: |
output

0 comments on commit 59a13c5

Please sign in to comment.