Skip to content

Release

Release #4

Workflow file for this run

name: Release
on:
push:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew
- name: Remove unneeded files
run: |
rm -r .github
rm -r gradle
rm -r src
rm gradlew
rm gradlew.bat
rm settings.gradle
rm .gitignore
rm build.gradle
- name: Zip files
run: zip -r ${{ github.repository }} *
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ./**/*