mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-07 00:17:17 +08:00
try to refactor the release ui ci - build and upload artifact for separate platform, then upload all artifact in a new job used for release.
This commit is contained in:
@@ -29,15 +29,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
node ./scripts/github-ci-build.mjs
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
name: binary-geekgeekrun-ui-windows-${{ github.sha }}
|
||||||
artifacts: "${{ github.workspace }}/packages/ui/dist/*.exe"
|
path: |
|
||||||
tag: ${{ github.ref }}
|
${{ github.workspace }}/packages/ui/dist/*.exe
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
overwrite: true
|
||||||
body: TODO New Release.
|
|
||||||
|
|
||||||
build_on_macos:
|
build_on_macos:
|
||||||
env:
|
env:
|
||||||
@@ -61,15 +60,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
node ./scripts/github-ci-build.mjs
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
name: binary-geekgeekrun-ui-macos-${{ github.sha }}
|
||||||
artifacts: "${{ github.workspace }}/packages/ui/dist/*.dmg,${{ github.workspace }}/packages/ui/dist/*.zip"
|
path: |
|
||||||
tag: ${{ github.ref }}
|
${{ github.workspace }}/packages/ui/dist/*.zip
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
${{ github.workspace }}/packages/ui/dist/*.dmg
|
||||||
body: TODO New Release.
|
overwrite: true
|
||||||
|
|
||||||
build_on_linux:
|
build_on_linux:
|
||||||
env:
|
env:
|
||||||
@@ -93,12 +92,40 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd packages/ui
|
cd packages/ui
|
||||||
node ./scripts/github-ci-build.mjs
|
node ./scripts/github-ci-build.mjs
|
||||||
|
|
||||||
- name: Create Release
|
- name: Upload Artifact
|
||||||
uses: ncipollo/release-action@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
name: binary-geekgeekrun-ui-linux-${{ github.sha }}
|
||||||
artifacts: "${{ github.workspace }}/packages/ui/dist/*.deb,${{ github.workspace }}/packages/ui/dist/*.rpm"
|
path: |
|
||||||
tag: ${{ github.ref }}
|
${{ github.workspace }}/packages/ui/dist/*.deb
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
${{ github.workspace }}/packages/ui/dist/*.rpm
|
||||||
body: TODO New Release.
|
overwrite: true
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: write-all
|
||||||
|
needs:
|
||||||
|
- build_on_linux
|
||||||
|
- build_on_macos
|
||||||
|
- build_on_windows
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Download Artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: geekgeekrun-ui@${{ github.sha }}
|
||||||
|
pattern: binary-geekgeekrun-ui-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Display structure of downloaded files
|
||||||
|
run: ls -llR geekgeekrun-ui@${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
allowUpdates: true
|
||||||
|
artifacts: geekgeekrun-ui@${{ github.sha }}/*
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
body: TODO New Release.
|
||||||
|
|||||||
Reference in New Issue
Block a user