Skip to content

v0.2.1-alpha #48

v0.2.1-alpha

v0.2.1-alpha #48

Workflow file for this run

on:
release:
types:
- created
defaults:
run:
shell: bash
name: release
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-linux-x64
- run: gh release upload $TAG xbuild-linux-x64 -R ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x xbuild-macos-x64
- run: gh release upload $TAG xbuild-macos-x64 -R ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: hecrj/setup-rust-action@v1
- run: cargo install --path xbuild --root .
- run: mv bin/x.exe xbuild-windows-x64.exe
- run: gh release upload $TAG xbuild-windows-x64.exe -R ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.release.tag_name }}