diff options
| author | ruki <[email protected]> | 2022-01-26 00:55:24 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-01-26 00:55:24 +0800 |
| commit | b2853ef67333400dc03b93ee16b5993163533443 (patch) | |
| tree | 1c0416db555d208dafa8f7bc93aefbaa37720d50 | |
| parent | 0ae9ecedb6f056389cfbf0041f6f6cb7e5a1b7e9 (diff) | |
improve ci
| -rw-r--r-- | .github/workflows/macos.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/windows.yml | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c814607ec..842e69e0a 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -63,6 +63,16 @@ jobs: name: xmake-latest.zip path: artifacts/xmake.zip + - name: Upload artifacts to lastest release + if: github.ref == 'refs/heads/master' + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: artifacts/xmake.tar.gz + asset_name: xmake-master.tar.gz + tag: ${{ steps.previoustag.outputs.tag }} + overwrite: true + - name: Publish package if: github.event.action == 'published' uses: actions/[email protected] diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 757c423be..0dd18eb02 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -150,6 +150,16 @@ jobs: tag: ${{ steps.previoustag.outputs.tag }} overwrite: true + - name: Upload artifacts to lastest release + if: github.ref == 'refs/heads/master' + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: artifacts/${{env.RELEASE_NAME}}/archive.zip + asset_name: xmake-${{ env.GITHUB_REF_SLUG }}.${{ env.RELEASE_NAME }}.zip + tag: ${{ steps.previoustag.outputs.tag }} + overwrite: true + # publish release - name: Publish if: github.event.action == 'published' |
