π Update blahaj version to 0.2.1-2 #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- '*' | |
env: | |
node: true | |
es6: true | |
jobs: | |
release_job_linux: | |
runs-on: ubuntu-latest | |
name: πΎ Releasing | |
steps: | |
- name: β Checkout | |
uses: actions/checkout@v4 | |
- name: π» Download node and release package | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm install | |
- run: npm install --save-dev | |
- run: npm run build | |
- run: npm install -g @yao-pkg/pkg | |
- run: pkg dist/index.js | |
- name: π Draft Release | |
id: draft_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: β¨ ${{ github.ref }} | |
draft: false | |
- name: π Build Release (Linux) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.draft_release.outputs.upload_url }} | |
asset_path: ./index-linux | |
asset_name: blahaj-linux-x64 | |
asset_content_type: application/x-elf | |
- name: π Build Release (Windows) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.draft_release.outputs.upload_url }} | |
asset_path: ./index-win.exe | |
asset_name: blahaj-win-x64.exe | |
asset_content_type: application/vnd.microsoft.portable-executable | |
- name: π Build Release (macOS) | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.draft_release.outputs.upload_url }} | |
asset_path: ./index-macos | |
asset_name: blahaj-macos-x64 | |
asset_content_type: application/x-mach-binary |