Skip to content

Something about package.json #15

Something about package.json

Something about package.json #15

Workflow file for this run

name: Release Creation
on:
push:
tags:
- '*'
permissions:
contents: read
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: teaxyz/setup@v0
- name: Substitute Manifest and Download Links For Versioned Ones
run: |
cat ./public/module.json | jq '.version="${{ github.ref_name }}" | .url="https://github.com/${{github.repository}}" | .manifest="https://github.com/${{github.repository}}/releases/latest/download/module.json" | .download="https://github.com/${{github.repository}}/releases/download/${{github.ref_name}}/module.zip"' > ./public/module.json.tmp
rm ./public/module.json
mv ./public/module.json.tmp ./public/module.json
- name: Build
run: xc build
- run: (cd dist && zip -r ../module.zip *)
- run: zip -ur module.zip LICENSE README.md
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
artifacts: './module.zip, ./dist/module.json'