File tree Expand file tree Collapse file tree 2 files changed +6
-29
lines changed
Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Original file line number Diff line number Diff line change 1313
1414#
1515# Establish when the workflow is run
16+ # What we want is that a release is made whenever we merge into master. Here is an example:
17+ # if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true && github.base_ref == 'refs/heads/main' }}
18+ # But really, we can also just say that a push into master causes a release. Whether that must come from a PR
19+ # can be controlled via branch protection
1620
1721on :
1822 push : {}
2832 steps :
2933
3034 - name : Determine whether this is a release build
31- if : ${{ github.event_name == 'pull_request ' && github.event.pull_request.merged == true && github.base_ref == 'refs/heads/main' }}
35+ if : ${{ github.event_name == 'push ' && github.ref == 'refs/heads/main' }}
3236 env :
3337 IS_RELEASE : " true"
3438 run : echo "We will be performing a release upon success"
4448 - name : Install dependencies
4549 run : |
4650 python -m pip install --upgrade pip
51+ pip install wheel
4752 pip install -r requirements.txt
4853 pip install -r test-requirements.txt
4954
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments