fixed various bugs for v0.1.12 #13
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
name: Create release | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
# uses: actions/checkout@v4 | |
run: rustup target add x86_64-unknown-linux-musl; cargo build --release --target x86_64-unknown-linux-musl; sudo apt install gcc-mingw-w64; rustup target add x86_64-pc-windows-gnu; cargo build --release --target x86_64-pc-windows-gnu; tar cvfj rjq_linux_x86_64.tar.gz target/x86_64-unknown-linux-musl/release/rjq; zip rjq_win_x86_64.zip target/x86_64-pc-windows-gnu/release/rjq.exe; rm -rf target/ | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: | | |
Changes in this Release | |
- https://github.com/mainak55512/rjq/commits/${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset Linux | |
id: upload-release-asset-linux | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./rjq_linux_x86_64.tar.gz | |
asset_name: rjq_linux_x86_64.tar.gz | |
asset_content_type: application/x-tar | |
- name: Upload Release Asset Windows | |
id: upload-release-asset-windows | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./rjq_win_x86_64.zip | |
asset_name: rjq_win_x86_64.zip | |
asset_content_type: application/zip | |