Skip to content

Commit

Permalink
Push tag before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
adisidev committed Oct 24, 2024
1 parent 435b25d commit fea5c1b
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
short_sha: ${{ steps.vars.outputs.short_sha }}
steps:

- name: Set
- name: Checkout Repository
uses: actions/checkout@v4

- name: Calculate short_sha
id: vars
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Expand Down Expand Up @@ -84,26 +87,10 @@ jobs:
with:
name: cartogram

# - name: Generate and Push Tag
# id: generate_tag
# run: |
# # Configure git committer
# git config user.email "[email protected]"
# git config user.name "GitHub Action"

# # Get the current date
# current_date=$(date +'%Y-%m-%d')

# # Get the short SHA of the current HEAD

# # Create the new tag
# git tag -a "${{ needs.set-outputs.outputs.short_sha }}"

# # Push the tag to the repository
# git push origin "${{ needs.set-outputs.outputs.short_sha }}"

# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push short_sha Tag
uses: actions-ecosystem/action-push-tag@v1
with:
tag: ${{ needs.set-outputs.outputs.short_sha }}

- name: Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit fea5c1b

Please sign in to comment.