Skip to content

Merge pull request #6 from 3453890470/master #25

Merge pull request #6 from 3453890470/master

Merge pull request #6 from 3453890470/master #25

Workflow file for this run

name: auto-build
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_ACTION_NUMBER: ${{ vars.GITHUB_RUN_NUMBER }}
GITHUB_RUN_NUMBER: ${{ vars.GITHUB_RUN_NUMBER }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
uses: gradle/[email protected]
with:
arguments: build
- name: Get Version
id: var
run: |
MESSAGE=$(ls build/libs/* | grep sources.jar -v | grep shadow.jar -v | awk -F 'gtec-|.jar' '{print $2}')
echo version=$MESSAGE >> $GITHUB_OUTPUT
- name: release
uses: Kir-Antipov/[email protected]
with:
github-tag: ${{ steps.var.outputs.version }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: |
build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar