-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Github Workflows #2
Conversation
1976b11
to
fa948fe
Compare
This commit fixes the Github workflows to work with the new system
fa948fe
to
616a063
Compare
# This step gets the exact version of Go we're releasing (including minor), so if we give the input as `1.17` this might return `encore-go1.17.5`. | ||
- name: 'Read the version of Go we built' | ||
id: encore_go_version | ||
run: echo "::set-output name=version::$(go run . --read-built-version)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note; I did this via the main.go
file so it works on Windows as well as MacOS & Linux (and doesn't need us to write separate powershell code vs bash code)
cat checksums.txt | ||
|
||
- name: 'Publish release' | ||
uses: DomBlack/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a fork of meeDamian/github-release
and applied this PR which fixes a SSL reset issue with the current main release.
run: | | ||
cd ${{needs.build.outputs.built_version}}-windows_amd64 | ||
tar -xzf ${{needs.build.outputs.built_version}}-windows_amd64.tar.gz | ||
zip -r ${{needs.build.outputs.built_version}}-windows_amd64.zip encore-go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a zip version just to be nicer to Windows users who might not be used to working with tar.gz
files
allow_override: true | ||
prerelease: ${{ github.event.inputs.prerelease }} | ||
gzip: false | ||
files: Linux_x86-64.tar.gz Windows_x86-64.tar.gz Windows_x86-64.zip macOS_arm64.tar.gz macOS_x86-64.tar.gz checksums.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with these file names rather than the Go ARCH names so it's harder to mistakenly get an AMD64
vs ARM64
build.
This PR fixes the Github workflows since the refactor of this project. The updated workflows now also creates Github releases. For example this call to the workflow resulted in this release. It was given the version parameter of
1.17
and it downloaded the latest Go 1.17.x release; patched it; and released it on this repo.This PR also adds more descriptions to the patch files to explain what each patch file is doing