-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (39 loc) · 1.41 KB
/
deploy.yml
File metadata and controls
47 lines (39 loc) · 1.41 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
45
46
47
name: Deploy Pipeline
on:
push:
branches:
- master
workflow_dispatch:
jobs:
deploy:
name: Build and Deploy Grill
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: Grant Gradle permissions
run: chmod +x ./gradlew
- name: Build WurstSetup fat jar
run: ./gradlew clean versionInfoFile dist
- name: Create or update nightly-master tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f nightly-master
git push -f origin nightly-master
- name: Create GitHub Release and upload jar
uses: softprops/action-gh-release@v1
with:
tag_name: nightly-master
name: Nightly Build (master)
body: "Auto-published from the latest push to `master`."
draft: false
prerelease: true
files: build/libs/WurstSetup.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}