Merge pull request #1173 from mrapp-ke/merge-feature #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Publish development packages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- cpp/**/include/** | |
- cpp/**/src/** | |
- '**/*.pxd' | |
- '**/*.pyx' | |
- python/**/mlrl/** | |
jobs: | |
update_development_version: | |
name: Update development version | |
if: "!contains(github.event.head_commit.message, '[Bot]')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Generate token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.TOKEN_APP_ID }} | |
private-key: ${{ secrets.TOKEN_APP_SECRET }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
- name: Setup git | |
uses: fregante/setup-git-user@v2 | |
- name: Update development version | |
run: | | |
./build increment_development_version | |
git add .version-dev | |
git commit -m "[Bot] Update development version to $(cat .version-dev)." | |
git push | |
read_python_version: | |
name: Read Python version | |
runs-on: ubuntu-latest | |
outputs: | |
python_version: ${{ steps.python_version.outputs.content }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Read Python version | |
uses: juliangruber/read-file-action@v1 | |
id: python_version | |
with: | |
path: .version-python | |
publish_packages: | |
name: Publish wheel packages | |
needs: | |
- update_development_version | |
- read_python_version | |
uses: ./.github/workflows/template_publish.yml | |
with: | |
python_version: ${{ needs.read_python_version.outputs.python_version }} | |
pypi_repository: testpypi | |
dev_release: true | |
secrets: | |
pypi_username: ${{ secrets.TEST_PYPI_USERNAME }} | |
pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }} |