This repository was archived by the owner on Apr 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.23 KB
/
release.yml
File metadata and controls
43 lines (36 loc) · 1.23 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
name: release
on: [workflow_dispatch] # Manual trigger
permissions:
contents: write
jobs:
build:
strategy:
matrix:
java: [ 17-jdk ]
runs-on: ubuntu-20.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
steps:
- run: apt update && apt install git -y && git --version
- run: git config --global --add safe.directory /__w/companion/companion
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: FabricMC/fabric-action-scripts@v1
id: changelog
with:
context: changelog
workflow_id: release.yml
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build publish releaseVersion --continue --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}