Skip to content

Commit

Permalink
feat: release every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Apr 17, 2024
1 parent 0733678 commit f9984f5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ jobs:
id: date
run: echo "DATE=$(date +%Y-%m-%d-%H:%M)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: "./build/*"
make_latest: false
- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type != 'tag'
with:
name: "${{ github.ref_name }} — ${{ env.DATE }}"
files: "./build/*"
tag_name: ci_latest
make_latest: true

0 comments on commit f9984f5

Please sign in to comment.