This commit is contained in:
Kevin Yue 2024-04-07 20:55:32 +08:00 committed by Kevin Yue
parent f72dbd1dec
commit 54ccb761e5

View File

@ -25,7 +25,7 @@ jobs:
id: set-matrix id: set-matrix
run: | run: |
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}, {"runner": "arm64", "arch": "arm64"]' >> $GITHUB_OUTPUT echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}, {"runner": "arm64", "arch": "arm64"}]' >> $GITHUB_OUTPUT
else else
echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}]' >> $GITHUB_OUTPUT echo 'matrix=[{"runner": "ubuntu-latest", "arch": "amd64"}]' >> $GITHUB_OUTPUT
fi fi
@ -182,7 +182,7 @@ jobs:
gh -R "$REPO" release create $RELEASE_TAG \ gh -R "$REPO" release create $RELEASE_TAG \
--title "$RELEASE_TAG" \ --title "$RELEASE_TAG" \
--notes "$NOTES" \ --notes "$NOTES" \
--target ${{ github.ref }} \ ${{ github.ref == 'refs/heads/dev' && '--target dev' || '' }} \
${{ github.ref == 'refs/heads/dev' && '--prerelease' || '' }} \ ${{ github.ref == 'refs/heads/dev' && '--prerelease' || '' }} \
gh-release/artifact-source/* \ gh-release/artifact-source/* \
gh-release/artifact-gpgui-*/* gh-release/artifact-gpgui-*/*