Skip to content

Commit f2a6a4e

Browse files
committed
Finetuning build mech
1 parent 78efd9a commit f2a6a4e

File tree

2 files changed

+6
-29
lines changed

2 files changed

+6
-29
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ env:
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

1721
on:
1822
push: {}
@@ -28,7 +32,7 @@ jobs:
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"
@@ -44,6 +48,7 @@ jobs:
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

.github/workflows/sast.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)