-
Notifications
You must be signed in to change notification settings - Fork 225
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
Build: Move release handling to GH cli #3075
Conversation
.github/autobuild/android.sh
Outdated
@@ -100,10 +100,10 @@ build_app_as_apk() { | |||
} | |||
|
|||
pass_artifact_to_job() { | |||
mkdir deploy | |||
mkdir publish | |||
local artifact="jamulus_${JAMULUS_BUILD_VERSION}_android.apk" |
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.
uploading everything from the deploy directory doesn’t work as
- GH on Windows doesn‘t support wildcards
- MacOS moves the binary (.app files) to the deploy folder
If instead we upload the files by name - as we do in this state - we could also use the deploy directory directly.
.github/workflows/autobuild.yml
Outdated
id: upload-release-asset2 | ||
uses: actions/upload-release-asset@v1 | ||
id: upload-release-assets | ||
run: cd publish; gh release upload "${{ needs.create_release.outputs.tag_name }}" ${{ steps.get-artifacts.outputs.artifact_1 }} ${{ steps.get-artifacts.outputs.artifact_2 }} --clobber |
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.
Not sure if omitting quotes is the best way to "overload" this command. Basically if quotes are omitted we can have an arbitrary amount of files to upload
b809c8c
to
7ee2ca4
Compare
034aca3
to
29013ef
Compare
29013ef
to
6969b9e
Compare
6969b9e
to
2933063
Compare
I've now hard-coded the repo files. Hopefully that will work now. |
2933063
to
d04b092
Compare
I've removed the release upload and release create and delete actions now from the actions whitelist as they're no longer used. |
Short description of changes
Makes more use of native gh command to get rid of third party actions. This has the benefit of less complexity and the need of trust on external dependencies.
CHANGELOG: Internal: Use native gh command for release management and uploading artefacts
Context: Fixes an issue?
Related to: #3069
Does this change need documentation? What needs to be documented and how?
No
Status of this Pull Request
Ready for review. Tested Prerelease and release on my repo. We should decide if the current way of uploading two files on the linux build is ok or two steps/moving the whole upload logic into the autobuild scripts is preferred. This would add more complex logic.
What is missing until this pull request can be merged?
Agreement on how to handle multiple artefacts.
Checklist