Skip to content

Testing auto release #1

Testing auto release

Testing auto release #1

Workflow file for this run

name: Pre-release build
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Show debug info
run: ./gradlew --version
- name: Setup Crucible
run: ./gradlew cleanCache clean setupDecompWorkspace --refresh-dependencies
- name: Build Crucible distribution packages
run: ./gradlew build
- name: Get short hash
id: short_sha
run: echo "::set-output name=sha::$(expr substr ${{ github.sha }} 1 7)"
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: staging-${{ steps.short_sha.outputs.sha }}
prerelease: true
name: Staging branch build ${{ steps.short_sha.outputs.sha }}
body: |
This is an automatic pre-release build of commit ${{ github.sha }}
With this release you can test ahead of time the next NecroTempus release candidate
files: |
build/libs/*