Skip to content

Commit

Permalink
Update GitHub Actions workflow for daily build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-design committed Oct 22, 2024
1 parent 783b890 commit 9dfc10f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
build/linux/x64/release/bundle/*
build/linux/arm64/release/bundle/*
build/windows/runner/Release/XStream.exe
build/macos/Build/Products/Release/XStream.app
build/macos/Build/Products/Release/xstream.app
build/app/outputs/flutter-apk/app-release.apk
build/ios/iphoneos/XStream.app
Expand All @@ -172,15 +172,15 @@ jobs:
- name: Check if tag exists
id: check_tag
run: |
TAG_EXISTS=$(git tag --list "v${{ github.run_number }}-${{ github.run_id }}")
TAG_EXISTS=$(git tag --list "daily-build-${{ github.run_number }}-${{ github.run_id }}")
echo "tag_exists=$TAG_EXISTS" >> $GITHUB_ENV
- name: Set tag_name
id: set_tag_name
run: |
# 根据标签是否存在设置 tag_name
if [ -z "$TAG_EXISTS" ]; then
echo "tag_name=v${{ github.run_number }}-${{ github.run_id }}" >> $GITHUB_ENV
echo "tag_name=daily-build-${{ github.run_number }}-${{ github.run_id }}" >> $GITHUB_ENV
else
echo "tag_name=$TAG_EXISTS" >> $GITHUB_ENV
fi
Expand All @@ -190,7 +190,7 @@ jobs:
uses: actions/create-release@v1
with:
tag_name: ${{ env.tag_name }}
release_name: Release ${{ env.tag_name }}
release_name: Daily Build ${{ env.tag_name }}
draft: false
prerelease: false
env:
Expand All @@ -205,7 +205,7 @@ jobs:
build/linux/x64/release/bundle/*
build/linux/arm64/release/bundle/*
build/windows/runner/Release/XStream.exe
build/macos/Build/Products/Release/XStream.app
build/macos/Build/Products/Release/xstream.app
build/app/outputs/flutter-apk/app-release.apk
build/ios/iphoneos/XStream.app
env:
Expand Down

0 comments on commit 9dfc10f

Please sign in to comment.