Skip to content

update: version to 0.8.0 #42

update: version to 0.8.0

update: version to 0.8.0 #42

Workflow file for this run

name: Build And Release App
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
LATEST_TAG: unknown
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@v4
- name: Get latest tag
run: |
$latestTag = git describe --tags $(git rev-list --tags --max-count=1)
echo "Latest tag is $latestTag"
$Env:LATEST_TAG = $latestTag
- name: Build
run: cargo build --release
- name: Compress
run: Compress-Archive -Path assets, target\release\rotor.exe -DestinationPath rotor-${{ env.LATEST_TAG }}.zip
- name: release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: rotor-${{ env.LATEST_TAG }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}