mirror of
https://github.com/TauMC/glsl-transformation-lib.git
synced 2026-11-29 22:02:09 -05:00
34 lines
885 B
YAML
34 lines
885 B
YAML
# Used when a commit is pushed to the repository
|
|
name: build-snapshot
|
|
|
|
on: [ push ]
|
|
|
|
env:
|
|
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
|
|
MAVEN_SECRET: ${{ secrets.MAVEN_SECRET }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Extract current branch name
|
|
shell: bash
|
|
# bash pattern expansion to grab branch name without slashes
|
|
run: ref="${GITHUB_REF#refs/heads/}" && echo "branch=${ref////-}" >> $GITHUB_OUTPUT
|
|
id: ref
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 21
|
|
- name: Build artifacts
|
|
run: ./gradlew build publish
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Taufuscator
|
|
path: build/libs
|