-
Notifications
You must be signed in to change notification settings - Fork 454
42 lines (41 loc) · 1.02 KB
/
upload.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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'