Skip to content

Commit

Permalink
Update Alpha release action to shared workflow (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel authored Mar 13, 2023
1 parent 25a5455 commit b62041d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 96 deletions.
51 changes: 9 additions & 42 deletions .github/workflows/publish_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,49 +9,16 @@ on:
- 'version.py'

jobs:
increment_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: Increment Version
run: |
VER=$(python setup.py --version)
python version_bump.py
- name: Push Version Change
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Increment Version
tag_alpha_release:
runs-on: ubuntu-latest
needs: increment_version
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Get Version
id: version
run: |
VERSION=$(python setup.py --version)
echo ::set-output name=version::${VERSION}
- name: Create Pre-release
uses: ncipollo/release-action@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
tag: ${{steps.version.outputs.version}}
commit: ${{ github.ref }}
prerelease: true
publish_alpha_release:
uses: neongeckocom/.github/.github/workflows/publish_alpha_release.yml@FEAT_TagAlphaReleases
secrets: inherit
with:
version_file: "version.py"
setup_py: "setup.py"
publish_pypi: false
publish_prerelease: true
build_and_publish_docker:
needs: increment_version
needs: publish_alpha_release
uses: neongeckocom/.github/.github/workflows/publish_docker.yml@master
secrets: inherit
with:
Expand Down
54 changes: 0 additions & 54 deletions version_bump.py

This file was deleted.

0 comments on commit b62041d

Please sign in to comment.