-
-
Notifications
You must be signed in to change notification settings - Fork 38
31 lines (31 loc) · 1 KB
/
Copy pathtag.yml
File metadata and controls
31 lines (31 loc) · 1 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
name: Create Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: setup jdk 25
uses: actions/setup-java@v1
with:
java-version: 25
- name: Get Release Changelog
run: |
# Read the event payload to get the changelog and save it to a file
changelog=$(jq -r '.release.body' $GITHUB_EVENT_PATH)
echo "$changelog" > changelog.md
echo "Changelog saved to changelog.md"
- name: make gradle wrapper executable
run: chmod +x ./gradlecw
- name: build
run: ./gradlecw build publishMods -Pbuild.release=true --info
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
files: 'versions/**/build/libs/!(*-@(dev|sources|javadoc|all)).jar'