77 release :
88 runs-on : ubuntu-latest
99 steps :
10- - name : Checkout
11- uses : actions/checkout@v3
12- with :
13- fetch-depth : ' 0'
14-
15- - name : Get Author Name and Email
16- run : |
17- AUTHOR_NAME=$(git log -1 --pretty=format:%an ${{ github.sha }})
18- AUTHOR_EMAIL=$(git log -1 --pretty=format:%ae ${{ github.sha }})
19- echo "AUTHOR_NAME=$AUTHOR_NAME" >> $GITHUB_OUTPUT
20- echo "AUTHOR_EMAIL=$AUTHOR_EMAIL" >> $GITHUB_OUTPUT
21- id : author_info
22-
23- - name : Set up Java 8
24- uses : actions/setup-java@v3
25- with :
26- java-version : " 8"
27- distribution : temurin
28- server-id : ossrh
29- server-username : OSSRH_JIRA_USERNAME
30- server-password : OSSRH_JIRA_PASSWORD
31- gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
32- gpg-passphrase : GPG_PASSPHRASE
33-
34- - name : Cache local Maven repository
35- uses : actions/cache@v3
36- with :
37- path : ~/.m2/repository
38- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39- restore-keys : |
40- ${{ runner.os }}-maven-
41-
42- - uses : actions/setup-node@v4
43- with :
44- node-version : 20
45-
46- - name : " 🔧 setup Bun"
47- uses : oven-sh/setup-bun@v1
48-
49- - name : Semantic Release
50- run : |
51- bun install @conveyal/maven-semantic-release semantic-release @semantic-release/git conventional-changelog-conventionalcommits
52- bun x semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release
53- env :
54- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55- GPG_KEY_NAME : ${{ secrets.GPG_KEY_NAME }}
56- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
57- OSSRH_JIRA_USERNAME : ${{ secrets.OSSRH_JIRA_USERNAME }}
58- OSSRH_JIRA_PASSWORD : ${{ secrets.OSSRH_JIRA_PASSWORD }}
59- GIT_COMMITTER_NAME : " github-actions[bot]"
60- GIT_COMMITTER_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
61- GIT_AUTHOR_NAME : ${{ steps.author_info.outputs.AUTHOR_NAME }}
62- GIT_AUTHOR_EMAIL : ${{ steps.author_info.outputs.AUTHOR_EMAIL }}
10+ - name : Checkout
11+ uses : actions/checkout@v3
12+ with :
13+ fetch-depth : ' 0'
14+
15+ - name : Get Author Name and Email
16+ run : |
17+ AUTHOR_NAME=$(git log -1 --pretty=format:%an ${{ github.sha }})
18+ AUTHOR_EMAIL=$(git log -1 --pretty=format:%ae ${{ github.sha }})
19+ echo "AUTHOR_NAME=$AUTHOR_NAME" >> $GITHUB_OUTPUT
20+ echo "AUTHOR_EMAIL=$AUTHOR_EMAIL" >> $GITHUB_OUTPUT
21+ id : author_info
22+
23+ - name : Set up Java 8
24+ uses : actions/setup-java@v3
25+ with :
26+ java-version : " 8"
27+ distribution : temurin
28+ server-id : ossrh
29+ server-username : OSSRH_JIRA_USERNAME
30+ server-password : OSSRH_JIRA_PASSWORD
31+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
32+ gpg-passphrase : GPG_PASSPHRASE
33+
34+ - name : Cache local Maven repository
35+ uses : actions/cache@v3
36+ with :
37+ path : ~/.m2/repository
38+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+ restore-keys : |
40+ ${{ runner.os }}-maven-
41+
42+ - uses : actions/setup-node@v4
43+ with :
44+ node-version : 20
45+
46+ - name : " 🔧 setup Bun"
47+ uses : oven-sh/setup-bun@v1
48+
49+ - name : Semantic Release
50+ run : |
51+ bun install @conveyal/maven-semantic-release semantic-release @semantic-release/git conventional-changelog-conventionalcommits
52+ bun x semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ GPG_KEY_NAME : ${{ secrets.GPG_KEY_NAME }}
56+ GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
57+ OSSRH_JIRA_USERNAME : ${{ secrets.OSSRH_JIRA_USERNAME }}
58+ OSSRH_JIRA_PASSWORD : ${{ secrets.OSSRH_JIRA_PASSWORD }}
59+ GIT_COMMITTER_NAME : " github-actions[bot]"
60+ GIT_COMMITTER_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
61+ GIT_AUTHOR_NAME : ${{ steps.author_info.outputs.AUTHOR_NAME }}
62+ GIT_AUTHOR_EMAIL : ${{ steps.author_info.outputs.AUTHOR_EMAIL }}
0 commit comments