-
Notifications
You must be signed in to change notification settings - Fork 111
59 lines (52 loc) · 1.58 KB
/
stage-to-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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
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