Skip to content

Commit

Permalink
Split bump/deploy github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul V Craven committed Jan 24, 2025
1 parent c77ab1a commit 819aaf5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Distribute build to PyPi Production

on:
workflow_dispatch:

jobs:
# --- Bump version
bump-version:

runs-on: ubuntu-latest
environment: deploy-pypi-test

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.MY_TOKEN }}
- name: Bump versions
uses: remorses/bump-version@js
with:
version_file: ./arcade/VERSION
prerelease_tag: rc
env:
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}
19 changes: 0 additions & 19 deletions .github/workflows/push_build_to_prod_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,12 @@ on:
workflow_dispatch:

jobs:
# --- Bump version
bump-version:

runs-on: ubuntu-latest
environment: deploy-pypi-test

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.MY_TOKEN }}
- name: Bump versions
uses: remorses/bump-version@js
with:
version_file: ./arcade/VERSION
prerelease_tag: rc
env:
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}

# --- Deploy to pypi
deploy-to-pypi-prod:

runs-on: ubuntu-latest
environment: deploy-pypi-prod
needs: bump-version
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 819aaf5

Please sign in to comment.