Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Bump Version

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 }}
25 changes: 6 additions & 19 deletions .github/workflows/push_build_to_prod_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,25 @@ name: Distribute build to PyPi Production

on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
type: string

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
with:
fetch-tags: 'true'
ref: ${{ github.event.inputs.tag }}
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
Loading