-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #923 from krakend/run_wf
Set a configurable github action to upload cached-artifacts to a release page manually
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
cache-ref-key: | ||
type: string | ||
description: cache-ref-key to upload to release page | ||
required: true | ||
release-id: | ||
type: string | ||
description: release id destination | ||
required: true | ||
|
||
name: Upload cache to release page | ||
jobs: | ||
upload: | ||
name: Upload release-artifacts | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
actions: read | ||
packages: write | ||
checks: write | ||
contents: write | ||
statuses: read | ||
steps: | ||
- name: Restore cache | ||
id: cache-restore | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
*.tar.gz | ||
*.asc | ||
*.deb | ||
*.rpm | ||
checksums.txt | ||
key: ${{ github.event.inputs.cache-ref-key }} | ||
- name: Upload the artifacts | ||
uses: skx/github-action-publish-binaries@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
releaseId: ${{ github.event.inputs.release-id }} | ||
args: '*.tar.gz *.asc *.deb *.rpm checksums.txt' |