-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a579e8b
commit 49a91e0
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
# Checkout code | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Run integration tests | ||
- name: Run Integration Tests | ||
run: | | ||
|
@@ -32,7 +32,7 @@ jobs: | |
release: | ||
name: Release and Publish Docker Image | ||
needs: test # Ensure the test job runs successfully first | ||
needs: test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -71,6 +71,21 @@ jobs: | |
echo "New version: $NEW_VERSION" | ||
echo "::set-output name=version::$NEW_VERSION" | ||
# Create a new Git tag | ||
- name: Create and push Git tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
NEW_VERSION=${{ steps.determine_version.outputs.version }} | ||
# Configure git user | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
# Create and push the tag | ||
git tag -a "$NEW_VERSION" -m "Release $NEW_VERSION" | ||
git push origin "$NEW_VERSION" | ||
# Create a GitHub release | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v2 | ||
|