Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/create-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Create Release
id: create_release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if git show-ref --tags --verify --quiet "refs/tags/${{ github.ref_name }}"; then
echo "Release tag ${{ github.ref_name }} already exists, skipping creation..."
if gh release view ${{ github.ref_name }} > /dev/null 2>&1; then
echo "Release ${{ github.ref_name }} already exists, skipping..."
else
gh release create ${{ github.ref_name }}
fi

build-release:
# Ensure this doesn't run in parallel with the above
needs:
create-release
uses: ./.github/workflows/build.yml
with:
release: true
Expand Down
Loading