ci: publish releases with an explicit repository
ef902ea parent: 8daa376 modified
.github/workflows/release.yml +4 -3 | @@ -101,10 +101,11 @@ jobs: | ||
| 101 | 101 | dist/clonim-linux-x86_64.tar.gz |
| 102 | 102 | dist/clonim-linux-x86_64.tar.gz.sha256 |
| 103 | 103 | ) |
| 104 | - if gh release view "$TAG" >/dev/null 2>&1; then | |
| 105 | - gh release upload "$TAG" "${assets[@]}" --clobber | |
| 104 | + if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then | |
| 105 | + gh release upload "$TAG" "${assets[@]}" --clobber \ | |
| 106 | + --repo "$GITHUB_REPOSITORY" | |
| 106 | 107 | else |
| 107 | - gh release create "$TAG" "${assets[@]}" \ | |
| 108 | + gh release create "$TAG" "${assets[@]}" --repo "$GITHUB_REPOSITORY" \ | |
| 108 | 109 | --verify-tag \ |
| 109 | 110 | --generate-notes \ |
| 110 | 111 | --title "$TAG" |
| @@ -101,10 +101,11 @@ jobs: | |||
| 101 | dist/clonim-linux-x86_64.tar.gz | 101 | dist/clonim-linux-x86_64.tar.gz |
| 102 | dist/clonim-linux-x86_64.tar.gz.sha256 | 102 | dist/clonim-linux-x86_64.tar.gz.sha256 |
| 103 | ) | 103 | ) |
| 104 | - if gh release view "$TAG" >/dev/null 2>&1; then | 104 | + if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then |
| 105 | - gh release upload "$TAG" "${assets[@]}" --clobber | 105 | + gh release upload "$TAG" "${assets[@]}" --clobber \ |
| 106 | + --repo "$GITHUB_REPOSITORY" | ||
| 106 | else | 107 | else |
| 107 | - gh release create "$TAG" "${assets[@]}" \ | 108 | + gh release create "$TAG" "${assets[@]}" --repo "$GITHUB_REPOSITORY" \ |
| 108 | --verify-tag \ | 109 | --verify-tag \ |
| 109 | --generate-notes \ | 110 | --generate-notes \ |
| 110 | --title "$TAG" | 111 | --title "$TAG" |