Skip to content

Commit

Permalink
Used script to create an automatically gened tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DJIronic authored Oct 25, 2022
1 parent 1a97e01 commit 2c19d53
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main-autorelease.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle
name: Java CI with AutoRelease

on: [push, pull_request]

Expand All @@ -14,11 +14,15 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::Autobuild_$(date +"%d.%m.%Y_%H-%M")"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle and upload to Releases
env:
GH_TOKEN: ${{ secrets.REPO_TOKEN }}
run: |
./gradlew build
gh release create latest proxy/build/libs/*-all.jar --generate-notes --prerelease
gh release create ${{ steps.tag.outputs.release_tag }} proxy/build/libs/*-all.jar --generate-notes

0 comments on commit 2c19d53

Please sign in to comment.