Skip to content

Jetpack and Powered Armor refactor (#1640) #916

Jetpack and Powered Armor refactor (#1640)

Jetpack and Powered Armor refactor (#1640) #916

Workflow file for this run

name: auto-build
on:
push:
branches:
- '1.20.1'
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_ACTION_NUMBER: ${{ vars.GITHUB_RUN_NUMBER }}
GITHUB_RUN_NUMBER: ${{ vars.GITHUB_RUN_NUMBER }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Build
uses: ./.github/actions/build_setup
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Get Version
id: var
run: |
MESSAGE=$(ls build/libs/* | grep sources.jar -v | grep shadow.jar -v | grep slim.jar -v | awk -F 'gtceu-|.jar' '{print $2}')
echo "version=$MESSAGE" >> $GITHUB_OUTPUT
- name: Release
id: release
uses: Kir-Antipov/[email protected]
with:
github-tag: ${{ steps.var.outputs.version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
- name: Print Output
run: |
echo "Release tag: ${{ steps.release.outputs.github-tag }}"
echo "Release URL: ${{ steps.release.outputs.github-url }}"
echo "Released files: ${{ steps.release.outputs.github-files }}"