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 e6fb829
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
matrix.platform == 'linux' && 'ubuntu-latest' ||
matrix.platform == 'android' && 'ubuntu-latest' ||
matrix.platform == 'macos' && 'macos-latest' ||
matrix.platform == 'ios' && 'macos-latest' }}
matrix.platform == 'ios' && 'macos-latest'
}}

env:
PLATFORM: ${{ matrix.platform }}
Expand Down Expand Up @@ -153,7 +154,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 +173,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 +191,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 }} # Updated release name
draft: false
prerelease: false
env:
Expand All @@ -205,7 +206,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 e6fb829

Please sign in to comment.