Skip to content

Commit 0aa1bbf

Browse files
chore : Release Pipeline Setup
1 parent d5fd961 commit 0aa1bbf

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish Release
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened, synchronize]
57

68
### TODO: Replace instances of './.github/actions/' with reference to the `dx-sdk-actions` repo is made public and this file is transferred over
79
### TODO: Also remove `get-prerelease`, `get-version`, `release-create`, `tag-create` and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
@@ -24,7 +26,7 @@ jobs:
2426
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
2527
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
2628
publish-pypi:
27-
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
29+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request'))
2830
name: "PyPI"
2931
runs-on: ubuntu-latest
3032
# needs: rl-scanner
@@ -70,17 +72,17 @@ jobs:
7072
- name: Configure Python
7173
uses: actions/setup-python@v5
7274
with:
73-
python-version: "3.8"
75+
python-version: "3.12"
7476

7577
- name: Configure dependencies
7678
run: |
7779
pip install --user --upgrade pip
7880
pip install --user pipx
7981
pipx ensurepath
80-
pipx install poetry==1.4.2
82+
pipx install poetry
8183
poetry config virtualenvs.in-project true
8284
poetry install --with dev
83-
poetry self add "poetry-dynamic-versioning[plugin]==1.1.1"
85+
poetry self add "poetry-dynamic-versioning[plugin]"
8486
8587
- name: Build release
8688
run: |

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.9.0
1+
1.0.0b4

0 commit comments

Comments
 (0)