mirror of
https://github.com/urbit/vere.git
synced 2024-09-11 11:55:31 +03:00
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:
commit
b8cf5377a0
1
.github/workflows/master.yml
vendored
1
.github/workflows/master.yml
vendored
@ -22,5 +22,4 @@ jobs:
|
||||
pace: 'live'
|
||||
upload: true
|
||||
fake_tests: false
|
||||
release: true
|
||||
secrets: inherit
|
||||
|
27
.github/workflows/shared.yml
vendored
27
.github/workflows/shared.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user