From 62abe6d8345eb2437b909bd30a4a4eea4696d70c Mon Sep 17 00:00:00 2001 From: orewaee Date: Wed, 17 Jul 2024 14:09:19 +0400 Subject: [PATCH] build: added workflow release --- .github/workflows/release.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..de09288 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,25 @@ +name: release +on: + push: + tags: + - "v*.*.*" +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: corretto + - uses: gradle/gradle-build-action@v2 + - run: chmod +x ./gradlew + - run: ./gradlew shadowJar + - uses: softprops/action-gh-release@v2 + with: + append_body: true + token: "${{ secrets.GITHUB_TOKEN }}" + files: | + velocity/build/libs/*.jar