Skip to content

v1.0.4

v1.0.4 #22

Workflow file for this run

name: Gradle Build Workflow
on:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.release.tag_name }}
BEARER_TOKEN: ${{ secrets.LABYMOD_BEARER_TOKEN }}
PUBLISH_TOKEN: ${{ secrets.LABYMOD_PUBLISH_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Release Artifacts with Gradle
run: ./gradlew build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/commonOutput/*.jar
- name: Grant execute permission for output
run: chmod +x build/commonOutput/*.jar
- name: Upload Assets to Release
id: upload-release-asset
uses: sekwah41/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/commonOutput/*.jar
asset_content_type: application/zip
- name: Clean Gradle
run: ./gradlew clean
- name: Publish Application
env:
DEFAULT_BUILD: 'true'
run: ./gradlew publish