-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 970 Bytes
/
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
name: Java Semantic Release
on:
push:
branches:
- master
workflow_call:
jobs:
build-upload-release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-java@v4
with:
java-version: 16
distribution: 'temurin'
cache: 'maven'
- name: Setup Node.js and semantic-release plugins
uses: actions/setup-node@v4
with:
node-version: lts/iron
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: npm install -g semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/exec semantic-release/git semantic-release/release-notes-generator
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: chmod +x ./.github/workflows/prepare-release.sh && npx semantic-release