-
-
Notifications
You must be signed in to change notification settings - Fork 239
34 lines (32 loc) · 1.02 KB
/
publish_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
name: Publish Latest Snapshot
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Get date
run: echo "DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Set Minecraft Version
run: echo "MINECRAFT_VERSION=${GITHUB_REF##*/}" >> ${GITHUB_ENV}
- name: Build jar
run: ./gradlew build
env:
BUILD_SNAPSHOT: true
BUILD_ID: ${{env.DATE}}
- name: Upload assets to GitHub
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{env.MINECRAFT_VERSION}}-latest-snapshot"
prerelease: true
title: Development Build ${{env.DATE}}
files: |
build/libs/*