主要更新了因工作目录判定错误导致的小问题 #54
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: Nightly Release | |
on: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**/*.md' | |
- .gitignore | |
pull_request: | |
branches: [ "master" ] | |
paths-ignore: | |
- '**/*.md' | |
- .gitignore | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cargo check | |
run: cargo check | |
- name: Build | |
run: cargo build --release | |
- name: Create zip file | |
run : | | |
cd target/release | |
Compress-Archive -Path .\yap.exe -DestinationPath ./yap.zip | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/release/yap.zip | |
tag_name: nightly-${{ github.run_number }} | |
title: Nightly Release ${{ github.run_number }} | |
body: Nightly Release ${{ github.run_number }} | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.YAP_TOKEN }} |