Revert "Automatically create GH releases (and corresponding tags) (#1… (#244)

Reverting this commit since `gh` is not installed on local arm64 linux
box.
This commit is contained in:
Matthew LeVan 2023-02-21 13:37:51 -05:00 committed by GitHub
commit b8cf5377a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 27 deletions

View File

@ -22,5 +22,4 @@ jobs:
pace: 'live'
upload: true
fake_tests: false
release: true
secrets: inherit

View File

@ -22,10 +22,6 @@ on:
description: 'Run fake ship tests'
type: boolean
default: true
release:
description: 'Create a GitHub release'
type: boolean
default: false
required: false
secrets:
GCP_CREDENTIALS:
@ -177,28 +173,7 @@ jobs:
echo "upload to $target complete." ||
echo "upload to $target failed.";
exit $exitcode
- name: Create a GitHub release
if: ${{ inputs.release }}
run: |
# Create or update the GitHub release.
# Compress and upload binary assets to release.
version="vere-v$(cat ./VERSION)"
exists=$(gh release list | cut -f 1 | grep -c "$version")
if [[ $exists -eq 0 ]]; then
# Create a new tag.
git tag $version
git push origin --tags
# Create a draft release with automatically-generated notes and
# source code archives.
gh release create $version \
--draft \
--generate-notes
fi
# Upload the binary to the release.
chmod +x ${{ env.urbit_static }}
tar -czf ${{ matrix.target }}.tgz ${{ env.urbit_static }}
gh release upload $version ${{ matrix.target }}.tgz
#
# DOCKER