Skip to content

Commit

Permalink
ci: 🎡 create prelease fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 committed Jan 28, 2024
1 parent e1c4733 commit 09b5c0b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Build and Release'
name: "Build and Release"

on:
push:
Expand All @@ -24,20 +24,19 @@ jobs:
- name: Set current date as env variable
run: echo "NOW=$(date --utc)" >> $GITHUB_ENV
- name: Delete Continuous Release
run: gh release delete continuous --cleanup-tag
run: gh release delete continuous --cleanup-tag || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Prerelease Tag
id: create_prerelease_tag
uses: softprops/action-gh-release@v1
with:
prerelease: true
draft: false
tag_name: continuous
name: Continuous build
body: |
Building time: ${{ env.NOW }}
- - -
run: |
gh release create continuous -p -t 'Continuous build' --notes "Building time: ${NOW}
- - -
"
# Make sure draft is false
gh release edit continuous --draft=false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

static-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 09b5c0b

Please sign in to comment.