Skip to content

feat: try to optimize memory usage #2

feat: try to optimize memory usage

feat: try to optimize memory usage #2

Workflow file for this run

name: Build Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Build
run: |
npm install pnpm --location=global
pnpm install && pnpm build
cd dist && zip -q -r kms-tools.zip * && mv kms-tools.zip ../ && cd ..
- name: Read Version
id: version
uses: ashley-taylor/[email protected]
with:
path: ./package.json
property: version
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.version.outputs.value }}
release_name: v${{ steps.version.outputs.value }}
draft: false
prerelease: false
- name: Upload Release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./kms-tools.zip
asset_name: kms-tools-v${{ steps.version.outputs.value }}.zip
asset_content_type: application/zip