-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.47 KB
/
ontag.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Tag - Create Release
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
tags:
- '*'
jobs:
build:
runs-on:
- ubuntu-latest
permissions:
contents: write
steps:
- name: checkout code
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 17
- name: Set up Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.3.5"
# Runs a single command using the runners shell
- name: Build with ant
run: ant package; ls ./target/*.zip*
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: target/working/changelog.txt
draft: false
prerelease: false
- name: Upload release binaries
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
asset_paths: '["./target/*.zip*"]'