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: Build and upload release artifacts to JFrog | ||
on: | ||
push: | ||
branches: | ||
- 'master*' | ||
# This is to make sure this workflow doesn't get triggered after a bump commit | ||
tags-ignore: | ||
- '*' | ||
jobs: | ||
promote-rc-build-to-release: | ||
uses: ./.github/workflows/bump-version.yml | ||
Check failure on line 12 in .github/workflows/stage-to-master.yml GitHub Actions / Build and upload release artifacts to JFrogInvalid workflow file
|
||
with: | ||
change: promote-rc-build-to-release | ||
build-artifacts: | ||
needs: promote-rc-build-to-release | ||
uses: ./.github/workflows/build-wheels.yml | ||
with: | ||
run_tests: false | ||
commit_sha: ${{ needs.promote-rc-build-to-release.outputs.bump_sha }} | ||
upload-to-jfrog: | ||
name: Upload artifacts to JFrog | ||
needs: build-artifacts | ||
uses: ./.github/workflows/upload-to-jfrog.yml | ||
with: | ||
new_version: ${{ needs.promote-rc-build-to-release.outputs.new_version }} | ||
secrets: inherit | ||
publish-to-pypi: | ||
runs-on: ubuntu-latest | ||
needs: build-artifacts | ||
steps: | ||
- name: Download and store all artifacts to single folder | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
merge-multiple: true | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: artifacts/ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
fast-forward-stage-to-master: | ||
needs: publish-to-pypi | ||
uses: ./.github/workflows/fast-forward-merge.yml | ||
with: | ||
branch_to_merge: master-test | ||
base_branch: stage-test | ||
fast-forward-dev-to-master: | ||
needs: publish-to-pypi | ||
uses: ./.github/workflows/fast-forward-merge.yml | ||
with: | ||
branch_to_merge: master-test | ||
base_branch: dev-test |