forked from algorandfoundation/xHD-Wallet-API-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.19 KB
/
build-and-release.yaml
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
name: Generate Release
on:
push:
branches:
- "release/*"
- "main"
jobs:
generate-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "adopt"
- name: Install system-wide LibSodium
run: sudo apt-get install -y libsodium-dev
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup NPM packages
run: npm install --save @semantic-release/git @semantic-release/github @google/semantic-release-replace-plugin @semantic-release/exec
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge Release -> Main
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
if: github.ref == 'refs/heads/release/1.x'
with:
type: now
from_branch: release/1.x
target_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}