diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml new file mode 100644 index 000000000..2ee5f1837 --- /dev/null +++ b/.github/workflows/bump_version.yml @@ -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 }} diff --git a/.github/workflows/push_build_to_prod_pypi.yml b/.github/workflows/push_build_to_prod_pypi.yml index 1385b7b7f..7091b7d87 100644 --- a/.github/workflows/push_build_to_prod_pypi.yml +++ b/.github/workflows/push_build_to_prod_pypi.yml @@ -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: