Skip to content

Commit

Permalink
Updated Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
louanfontenele committed Dec 29, 2024
1 parent 4d6b0ba commit 7e621f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ categories:

change-template: "- $TITLE by @$AUTHOR in #$NUMBER"

# Capture direct commits (without PR)
no-labels-merge-method: "title"
no-labels-template: "- $TITLE (commit: [`$SHORT_SHA`](https://github.com/{{github.repository}}/commit/$FULL_SHA))"

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/release-windows-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:

- name: Publish Artifacts
run: |
mkdir release
dotnet publish -c Release -o release
mkdir -p release
dotnet publish ./FactorioSaveGameEnableAchievements/FactorioSaveGameEnableAchievements.csproj -c Release -o release
- name: Create Zip Archive
run: zip -r release.zip release/
Expand Down Expand Up @@ -74,9 +74,14 @@ jobs:
NEW_TAG="${GAME_VERSION}-$(printf %.1f $NEW_VERSION)"
fi
echo "NEW_TAG=$NEW_TAG"
git tag -a $NEW_TAG -m "Release $NEW_TAG"
git push origin $NEW_TAG
# Verifica se a tag já existe
if git rev-parse $NEW_TAG >/dev/null 2>&1; then
echo "Tag $NEW_TAG already exists. Skipping..."
else
echo "Creating tag $NEW_TAG"
git tag -a $NEW_TAG -m "Release $NEW_TAG"
git push origin $NEW_TAG
fi
echo "tag=$NEW_TAG" >> $GITHUB_ENV
- name: Draft Release
Expand Down

0 comments on commit 7e621f1

Please sign in to comment.