-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 972 Bytes
/
bundle.yaml
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
name: Bundle
on:
push:
branches: ['*']
tags: ['!v*']
workflow_call: {}
jobs:
bundle:
name: Create upkg.tar.gz
runs-on: ubuntu-latest
steps:
- id: program_version
uses: orbit-online/program-version@v1.0.0
- uses: actions/checkout@v4
- name: Write version to upkg.json
run: |
upkgjson=$(cat upkg.json)
jq --arg version "${{ steps.program_version.outputs.version }}" '.version=$version' <<<"$upkgjson" >upkg.json
- name: Download upkg dependencies
run: |
mkdir -p .upkg/docopt-lib.sh
wget -qO- .upkg/docopt-lib.sh "$(jq -r '.dependencies[0].tar' upkg.json)" | \
tar -xzC .upkg/docopt-lib.sh
- name: Create upkg.tar.gz
run: tar -czf upkg.tar.gz .upkg bin lib LICENSE README.md upkg.json upkg.schema.json
- name: Upload upkg.tar.gz
uses: actions/upload-artifact@v4
with:
name: upkg.tar.gz
path: upkg.tar.gz
retention-days: 1