Skip to content

Commit 962acca

Browse files
committed
build and release github action
1 parent a1af1b1 commit 962acca

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build+release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build + Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch: # manual trigger
8+
9+
jobs:
10+
build-release:
11+
permissions:
12+
contents: write # allow to create a release
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup Java
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: 17
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v3
25+
- name: Build with Gradle
26+
run: ./gradlew build
27+
- name: Release
28+
uses: "marvinpinto/action-automatic-releases@latest"
29+
with:
30+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
31+
# automatic_release_tag: "${{ steps.date.outputs.NOW }}"
32+
automatic_release_tag: "latest"
33+
draft: false
34+
prerelease: false
35+
title: "org.dynapi.squirtle"
36+
files: |
37+
build/libs/*

0 commit comments

Comments
 (0)