Skip to content

Commit

Permalink
Set a configurable github action to upload cached-artifacts to a rele…
Browse files Browse the repository at this point in the history
…ase page manually.

Signed-off-by: Daniel Ortiz <dortiz@krakend.io>
  • Loading branch information
taik0 committed Sep 10, 2024
1 parent 6bda7d1 commit 2d00cc9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
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 v2.7.1
name: Upload cache to release page
jobs:
upload:
name: Upload release-artifacts
Expand All @@ -23,10 +32,11 @@ jobs:
*.deb
*.rpm
checksums.txt
key: refs/tags/v2.7.1-artifacts
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'

0 comments on commit 2d00cc9

Please sign in to comment.