Skip to content

🔧 Try gathering lib files #4

🔧 Try gathering lib files

🔧 Try gathering lib files #4

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Gather assets
id: assets
run: |
LIB_FILES="lib/**/*.*"
echo "::set-output name=lib_files::$LIB_FILES"
- name: Create release tarball
id: create_tarball
run: |
tar -czvf lib/${{ github.ref_name }}.tgz ${{ steps.assets.outputs.lib_files }}
- name: Upload release asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: lib/${{ github.ref_name }}.tgz
asset_name: ${{ github.ref_name }}.tgz
asset_content_type: application/gzip