Skip to content

Commit

Permalink
Add generate tag in action
Browse files Browse the repository at this point in the history
  • Loading branch information
andreock committed Jan 29, 2025
1 parent 270e429 commit 13a7062
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ jobs:
with:
name: firmware
path: firmware/
# - name: Generate release tag
# run: echo TAG_NAME=0.5.2-$(date +"%Y_%m_%d_%S") >> $GITHUB_ENV
# - name: Create release
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/heads/develop')
# with:
# tag_name: ${{ env.TAG_NAME }}
# target_commitish: ${{ github.ref }}
# name: "CapibaraZero ${{ github.ref }} beta"
# make_latest: true
# prerelease: true
# files: release/*
- name: Generate release tag
run: echo TAG_NAME=$(cat TAG)-$(date +"%Y_%m_%d_%S") >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/heads/develop')
with:
tag_name: ${{ env.TAG_NAME }}
target_commitish: ${{ github.ref }}
name: "CapibaraZero ${{ github.ref }} beta"
make_latest: true
prerelease: true
files: release/*
release:
runs-on: ubuntu-latest
needs: build
Expand Down
1 change: 1 addition & 0 deletions TAG
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.5.2

0 comments on commit 13a7062

Please sign in to comment.