-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 910 Bytes
/
release.yml
File metadata and controls
33 lines (31 loc) · 910 Bytes
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: CI
on:
push:
branches:
- master
workflow_dispatch:
permissions:
packages: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up JDK 21
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
with:
java-version: 21
distribution: 'adopt'
- name: Build
run: |
./gradlew shadowJar
- name: Release
uses: softprops/action-gh-release@v2
with:
# Configuring release name and tag.
name: Build \#${{ github.run_number }}
tag_name: ${{ github.run_number }}
# Configuring files that are attached to the release.
files: "build/libs/LuaStubGen-1.0-SNAPSHOT-all.jar"