Disable file previews in code, needs rewrite or removal. #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Release Artifacts | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Git before checkout | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends -y git | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- run: git config --global --add safe.directory /__w/MMDBot/MMDBot | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Setup ENV | |
run: echo "TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build Jar with Gradle | |
id: publish_release_assets | |
run: ./gradlew :build -Pbot_version=${{ env.TAG }} | |
env: | |
BUILD_NUMBER: ${{ github.run_number }} | |
- uses: Matyrobbrt/[email protected] | |
name: Make Changelog | |
id: changelog | |
with: | |
branch: '4.0' | |
workflow_id: release.yml | |
token: ${{ github.token }} | |
- name: Create release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ github.token }} | |
tag: ${{ github.ref }} | |
name: Release ${{ env.TAG }} | |
artifactErrorsFailBuild: true | |
artifacts: 'build/libs/*[-all].jar' | |
body: ${{ steps.changelog.outputs.changelog }} |