Skip to content

Commit

Permalink
set version before starting build
Browse files Browse the repository at this point in the history
  • Loading branch information
cranberry3148 committed Dec 30, 2024
1 parent ee27fab commit 5156968
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4


- name: Set CalVer version
id: calver
run: echo "VERSION=$(date -u +'%Y.%m.%d.%H%M')" >> $GITHUB_ENV

- name: Publish package
run: ./gradlew publish
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASS: ${{ secrets.NEXUS_PASS }}

- name: Set CalVer version
id: calver
run: echo "VERSION=$(date -u +'%Y.%m.%d.%H%M')" >> $GITHUB_ENV

- name: Create GitHub Release
uses: elgohr/Github-Release-Action@v5
with:
Expand Down

0 comments on commit 5156968

Please sign in to comment.