-
-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (39 loc) · 1.51 KB
/
release.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
name: Release
on:
release:
types: [ released ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 'Check out repository'
uses: actions/checkout@v4
- name: 'Set up Java'
uses: actions/setup-java@v1
with:
distribution: 'oracle'
java-version: 21
- name: 'Count modules'
id: count-modules
run: echo "size=$(wc --lines < com.github.sormuras.modules/com/github/sormuras/modules/modules.properties)" >> $GITHUB_OUTPUT
- name: 'Build with Bach'
run: |
PATH=.bach/bin:$PATH
bach --project-version ${{ github.event.release.tag_name }} build
- name: 'Release ${{ github.event.release.tag_name }} with ${{ steps.count-modules.outputs.size }} modules'
uses: jreleaser/release-action@v1
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: early-access
arguments: |
release \
--auto-config \
--update \
--tag-name=${{ github.event.release.tag_name }} \
--project-name=com.github.sormuras.modules \
--project-version=${{ github.event.release.tag_name }} \
--project-version-pattern=java-module \
--release-name="${{ github.event.release.tag_name }} with ${{ steps.count-modules.outputs.size }} modules" \
--glob ".bach/workspace/modules/*.jar" \
--file com.github.sormuras.modules/com/github/sormuras/modules/modules.properties