-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.29 KB
/
call-upload-github-release.yml
File metadata and controls
44 lines (40 loc) · 1.29 KB
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
name: "Upload GitHub release"
on:
workflow_call:
secrets:
ACTIONS_TOKEN:
required: true
jobs:
upload_github_release:
name: Upload GitHub release
runs-on: ubuntu-latest
steps:
- name: Checkout Git repo
uses: actions/checkout@v6
- uses: christian-draeger/read-properties@1.1.1
id: properties
with:
path: './gradle.properties'
properties: 'klibs.project.name klibs.project.version.string'
- uses: actions/download-artifact@d0ce8fd1167ed839810201de977912a090ab10a7
name: "Download bukkit"
with:
name: bukkit
path: ./jars
- uses: actions/download-artifact@d0ce8fd1167ed839810201de977912a090ab10a7
name: "Download neoforge"
with:
name: neoforge
path: ./jars
- name: Create release
id: create_internal_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
files: |
./jars/*.jar
tag_name: ${{ steps.properties.outputs.klibs-project-version-string }}
name: ${{ steps.properties.outputs.klibs-project-name }} - ${{ steps.properties.outputs.klibs-project-version-string }}
draft: false
prerelease: false