From 09666dabdbfa8ef9934fb2f86f8244082ab17e73 Mon Sep 17 00:00:00 2001 From: cosven Date: Sun, 30 Jun 2024 13:52:16 +0800 Subject: [PATCH] ci: use wildcard --- .github/workflows/macos-release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos-release.yml b/.github/workflows/macos-release.yml index b972036bb..36766b167 100644 --- a/.github/workflows/macos-release.yml +++ b/.github/workflows/macos-release.yml @@ -41,26 +41,24 @@ jobs: ls dist/ arch=`uname -m` macos_version=`sw_vers -productVersion` - echo "DIST_ARCH=${arch}" >> $GITHUB_ENV - echo "DIST_MACOS_VERSION=${macos_version}" >> $GITHUB_ENV cd dist/ && zip FeelUOwnX-macOS${macos_version}-${arch}.zip -r FeelUOwnX.app/ - name: Upload artifact uses: actions/upload-artifact@v3 with: name: FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip - path: dist/FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip + path: dist/FeelUOwnX*.zip - name: Upload to release page if: startsWith(github.ref, 'refs/tags/v') uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - files: dist/FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip + files: dist/FeelUOwnX*.zip - name: Upload to nightly if: github.ref == 'refs/heads/master' uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - files: dist/FeelUOwnX-macOS{{ env.DIST_MACOS_VERSION }}-{{ env.DIST_ARCH }.zip + files: dist/FeelUOwnX*.zip tag_name: nightly