-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (39 loc) · 1.23 KB
/
snapshot.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Download Latest Snapshot
on:
push:
branches: [ major-update ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Deploy with Gradle
run: ./gradlew deploy
- name: Tag Repo
uses: richardsimko/update-tag@master
with:
tag_name: major-update-snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: ncipollo/[email protected]
with:
artifacts: "Luminescent.jar"
allowUpdates: true
name: "Major Update Snapshot"
commit: ${{ steps.extract_branch.outputs.branch }}
prerelease: true
replaceArtifacts: true
tag: "major-update-snapshot"
token: ${{ secrets.GITHUB_TOKEN }}