Skip to content

Commit

Permalink
Merge pull request #923 from krakend/run_wf
Browse files Browse the repository at this point in the history
Set a configurable github action to upload cached-artifacts to a release page manually
  • Loading branch information
taik0 authored Sep 10, 2024
2 parents c5b1688 + 2d00cc9 commit 440d06f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/upload.yml
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'

0 comments on commit 440d06f

Please sign in to comment.