mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-06 14:52:50 +08:00
ci: 调试ci
This commit is contained in:
63
.github/workflows/ci.yml
vendored
63
.github/workflows/ci.yml
vendored
@@ -130,65 +130,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用自动创建的令牌
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用自动创建的令牌
|
||||||
|
|
||||||
- name: Create Release
|
- uses: ncipollo/release-action@v1
|
||||||
id: create_release
|
|
||||||
if: steps.get_release.outputs.status != '200'
|
|
||||||
uses: actions/create-release@v1
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }}
|
artifacts: "app-*.tar.gz"
|
||||||
release_name: ${{ github.ref_name }}
|
allowUpdates: true
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 使用自动创建的令牌
|
|
||||||
|
|
||||||
- name: Set Upload URL
|
|
||||||
run: echo "UPLOAD_URL=${{ steps.get_release.outputs.response_body || steps.create_release.outputs.upload_url }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Upload app-amd64.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-amd64.tar.gz
|
|
||||||
asset_name: app-amd64.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Upload app-amd64-lite.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-amd64-lite.tar.gz
|
|
||||||
asset_name: app-amd64-lite.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Upload app-arm64.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-arm64.tar.gz
|
|
||||||
asset_name: app-arm64.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Upload app-arm64-lite.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-arm64-lite.tar.gz
|
|
||||||
asset_name: app-arm64-lite.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Upload app-arm-v7.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-arm-v7.tar.gz
|
|
||||||
asset_name: app-arm-v7.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Upload app-arm-v7-lite.tar.gz
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./app-arm-v7-lite.tar.gz
|
|
||||||
asset_name: app-arm-v7-lite.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user