Skip to content

Add bundling github action #4

Add bundling github action

Add bundling github action #4

Workflow file for this run

name: Bundle
on:
push:
branches: ['*']
tags: ['*']
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.output.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 upkg.json upkg.schema.json
- name: Upload upkg.tar.gz
uses: actions/upload-artifact@v3
with:
name: upkg.tar.gz
path: upkg.tar.gz
retention-days: 90