-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (56 loc) · 1.85 KB
/
python-release.yml
File metadata and controls
65 lines (56 loc) · 1.85 KB
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
60
61
62
63
64
name: Python Release Workflow
on:
workflow_call:
inputs:
app-version:
description: Application version to release
required: true
type: string
main-branch:
description: Main branch name
required: false
type: string
default: main
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
release:
# Cannot use env.* variables here - https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
if: ${{ github.event_name != 'pull_request' && contains(github.ref,inputs.main-branch) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
submodules: 'recursive'
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: dist
- name: Display structure of downloaded files
run: ls -R
- name: Set up Java (for JReleaser)
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: JReleaser full-Release
uses: jreleaser/release-action@v2
env:
JRELEASER_PROJECT_VERSION: ${{ inputs.app-version }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
with:
arguments: full-release
setup-java: false
- name: JReleaser release output
uses: actions/upload-artifact@v4
if: always()
with:
name: jreleaser-release
path: |
out/jreleaser/trace.log
out/jreleaser/output.properties