Skip to content

update: version to 0.5.3. #17

update: version to 0.5.3.

update: version to 0.5.3. #17

Workflow file for this run

name: Build And Release App
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: build and release app
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
steps:
- name: Check out git repository
uses: actions/checkout@v3
- name: Get latest tag
id: latesttag
run: |
$latestTag = git describe --tags $(git rev-list --tags --max-count=1)
echo "Latest tag is $latestTag"
echo "::set-output name=tag::$latestTag"
- name: Build
run: cargo build --release
- name: Compress
run: Compress-Archive -Path assets, target\release\rotor.exe -DestinationPath rotor-${{ steps.latesttag.outputs.tag }}.zip
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "rotor-${{ steps.latesttag.outputs.tag }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}