-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.48 KB
/
publish-artifact-bundle.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
43
44
45
46
47
48
49
50
51
name: Publish Artifact Bundle
on:
workflow_call:
inputs:
binary_version:
required: true
type: string
binary_repo:
required: true
type: string
# Enables manually running this workflow from the Actions tab
workflow_dispatch:
inputs:
binary_version:
required: true
type: string
binary_repo:
required: true
type: string
jobs:
publish:
name: Publish Artifact Bundle
runs-on: macOS-13
env:
PLUGIN_VERSION: ${{ inputs.binary_version }}
steps:
- uses: actions/checkout@v4
with:
path: Plugin-Repo
- name: Get latest binaries
run: |
gh release download ${{ inputs.binary_version }} \
-R "${{ inputs.binary_repo }}" \
-p '*MacOS*64' \
-p '*Linux*64' \
-p '*Windows*64.exe' \
-p '*.deb' \
-p '*.rpm' \
-D 'Plugin-Repo/Resources/template.artifactbundle'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set info.json version
run: |
echo "${{ inputs.binary_version }}"
PLUGIN_VERSION="${PLUGIN_VERSION#?}"
echo "$PLUGIN_VERSION"
sed -i '' "s/<VERSION>/$PLUGIN_VERSION/g" Plugin-Repo/Resources/template.artifactbundle/info.json
cat Plugin-Repo/Resources/template.artifactbundle/info.json