mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-03 10:51:35 +02:00
Allow tagging from the web ui: delete existing release if found (#7)
This commit is contained in:
parent
28a1f3ea38
commit
9a3d1d63b4
10
.github/workflows/release-tags.yml
vendored
10
.github/workflows/release-tags.yml
vendored
@ -45,13 +45,23 @@ jobs:
|
|||||||
- name: Build the mod
|
- name: Build the mod
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
|
# Continue on error in the following steps to make sure releases still get made even if one of the methods fails
|
||||||
|
|
||||||
|
- name: Delete old release if it already exists
|
||||||
|
run: gh release delete --yes "${RELEASE_VERSION}"
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Release under current tag
|
- name: Release under current tag
|
||||||
run: gh release create "${RELEASE_VERSION}" --generate-notes ./build/libs/*.jar
|
run: gh release create "${RELEASE_VERSION}" --generate-notes ./build/libs/*.jar
|
||||||
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to Maven
|
- name: Publish to Maven
|
||||||
run: ./gradlew publish
|
run: ./gradlew publish
|
||||||
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
||||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user