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 45910b0
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 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,17 @@ 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 --draft=false -p -t 'Continuous build' --notes "Building time: ${NOW}
- - -
"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 45910b0

Please sign in to comment.