-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (54 loc) · 1.82 KB
/
release-python.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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "The new version to set"
post_version:
description: "The post (dev) version to set"
dry_run:
description: "Dry Run?"
default: false
type: boolean
jobs:
bump-and-tag:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/bump
with:
version: ${{ inputs.version }}
post_version: ${{ inputs.post_version }}
app_id: ${{ vars.APP_ID }}
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
artifactory_username: ${{ secrets.ARTIFACTORY_USER }}
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
gpg_key_id: ${{ vars.GPG_KEY_ID }}
dry_run: ${{ inputs.dry_run }}
build_dist:
needs: [bump-and-tag]
uses: ./.github/workflows/dist.yml
publish:
needs: [build_dist]
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/publish
with:
version: ${{ inputs.version }}
garasign_username: ${{ secrets.GRS_CONFIG_USER1_USERNAME }}
garasign_password: ${{ secrets.GRS_CONFIG_USER1_PASSWORD }}
artifactory_username: ${{ secrets.ARTIFACTORY_USER }}
artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }}
aws_role_arn: ${{ secrets.AWS_ROLE_ARN }}
aws_bucket_name: ${{ secrets.AWS_BUCKET }}
aws_region: ${{ vars.AWS_REGION_NAME }}
token: ${{ github.token }}
dry_run: ${{ inputs.dry_run }}