change up somethings, new update soon. #23
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: Rust | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
Build-Rust: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
pushd ${{ github.workspace }} | |
${{ secrets.LINKS }} | |
cargo build --release | |
cd target | |
cd release | |
mv syatisetup.exe ${{ github.workspace }} | |
popd | |
mkdir output | |
mv syatisetup.exe output | |
- name: Upload syatisetup | |
uses: actions/[email protected] | |
with: | |
name: sytatisetup | |
path: ${{ github.workspace }}/output | |
Publish: | |
needs: Build-Rust | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/[email protected] | |
with: | |
name: sytatisetup | |
path: ${{ github.workspace }} | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "Auto" | |
prerelease: true | |
title: "Auto Build" | |
files: | | |
*.exe |