-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.38 KB
/
main.yml
File metadata and controls
55 lines (49 loc) · 1.38 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
on:
push:
branches:
- main
jobs:
assemble:
name: Assemble
uses: ./.github/workflows/assemble.yml
secrets: inherit
release:
name: Release
needs: [ assemble ]
permissions:
packages: read
contents: write
actions: read
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: github-migration-*
merge-multiple: true
path: build/distributions
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.run_id }}
- name: Verify artifacts
run: |
ls build/distributions/github-migration-*-linux.zip
ls build/distributions/github-migration-*-osx.zip
ls build/distributions/github-migration-*-windows.zip
- name: Release
run: ./gradlew jreleaserRelease
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload JReleaser output
if: always()
uses: actions/upload-artifact@v4
with:
name: jreleaser-release
path: |
build/jreleaser/trace.log
build/jreleaser/output.properties