forked from shaka-project/static-ffmpeg-binaries
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This isolates elevated permissions to the release publication job only, and simplifies a more complex sequence of creating a draft release, then building and attaching binaries, then compiling release notes, then publishing the release. Now we simply build, compile notes, then publish a full release with notes and binaries at once. This also removes the need for our own "api client" in JavaScript. Now we perform these actions with GitHub's own tools: "gh" command line to create the release and "actions/" official actions to upload and download build artifacts.
- Loading branch information
1 parent
7f593bd
commit 0fe7e78
Showing
6 changed files
with
20 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,17 +22,9 @@ on: | |
# workflows. | ||
workflow_call: | ||
inputs: | ||
release_id: | ||
required: false | ||
type: string | ||
ref: | ||
required: true | ||
type: string | ||
secrets: | ||
# The GITHUB_TOKEN name is reserved, but not passed through implicitly. | ||
# So we call our secret parameter simply TOKEN. | ||
TOKEN: | ||
required: false | ||
|
||
# Runs on manual trigger. | ||
workflow_dispatch: | ||
|
@@ -214,23 +206,6 @@ jobs: | |
- name: Check that executables are static | ||
run: ./repo-src/build-scripts/99-check-static.sh | ||
|
||
- name: Attach assets to release | ||
if: inputs.release_id != '' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
run: | | ||
set -e | ||
set -x | ||
# Attach the build outputs to the draft release. Each machine will | ||
# do this separately and in parallel. Later, another job will take | ||
# over to collect them all and use their MD5 sums to create the | ||
# release notes (the "body" of the release). | ||
release_id="${{ inputs.release_id }}" | ||
(cd ./repo-src/api-client && npm ci) | ||
node ./repo-src/api-client/main.js \ | ||
upload-all-assets "$release_id" assets/ | ||
- name: Debug | ||
uses: mxschmitt/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.