Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Discreater committed Dec 27, 2023
1 parent 1689c8f commit 044a263
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.ref_name }}
RELEASE_VERSION: ${{ github.ref_name }}
SNAPSHOT: ${{ endsWith(github.ref_name, '-snapshot') || contains(github.event.head_commit.message, '[snapshot]') }}
steps:
- name: Checkout mod repo
uses: actions/checkout@v3
with:
fetch-depth: 32

- name: Set release version
run: |
IFS='-' read -r mv pv <<< "${{ github.ref_name }}"
echo "MC_VERSION=${mv}" >> $GITHUB_ENV
echo "RELEASE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Validate gradle wrapper checksum
uses: gradle/wrapper-validation-action@v1

Expand All @@ -48,7 +45,7 @@ jobs:
# 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 "${MC_VERSION}-${RELEASE_VERSION}"
run: gh release delete --yes "${RELEASE_VERSION}"
continue-on-error: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 044a263

Please sign in to comment.