-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 1.54 KB
/
procedure-release.yaml
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
name: (Procedure) Release
on:
workflow_dispatch:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
call-workflow-type-checking:
uses: ./.github/workflows/workflow-type-checking.yaml
call-workflow-test:
uses: ./.github/workflows/workflow-test.yaml
call-workflow-push-wheel-to-pypi:
uses: ./.github/workflows/workflow-push-wheel-to-pypi.yaml
needs: [call-workflow-type-checking, call-workflow-test]
secrets:
pypi-username: ${{ secrets.PYPI_USERNAME }}
pypi-password: ${{ secrets.PYPI_PASSWORD }}
call-workflow-push-docker-image:
uses: ./.github/workflows/workflow-push-docker-image.yaml
needs: [call-workflow-type-checking, call-workflow-test]
secrets:
docker-hub-password: ${{ secrets.PYWHLOBF_DOCKER_HUB_PASSWORD }}
huaweicloud-area: ${{ secrets.PYWHLOBF_HUAWEICLOUD_AREA }}
huaweicloud-ak: ${{ secrets.PYWHLOBF_HUAWEICLOUD_AK }}
huaweicloud-token: ${{ secrets.PYWHLOBF_HUAWEICLOUD_TOKEN }}
call-workflow-alarm:
uses: ./.github/workflows/workflow-alarm.yaml
needs: [call-workflow-push-wheel-to-pypi, call-workflow-push-docker-image]
if: ${{ always() }}
with:
send-alarm: ${{ needs.call-workflow-push-wheel-to-pypi.result != 'success' || needs.call-workflow-push-docker-image.result != 'success' }}
message: "WARNING: pywhlobf 'Release' failed. run_id=${{ github.run_id }}."
secrets:
webhook-url: ${{ secrets.VKIT_WECOM_BOT_WEBHOOK_URL }}