Skip to content

修改

修改 #1

name: Rust CI
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
- name: Build and Release
run: |
cargo build --release
mv target/release/your_program_name.exe q_bot.exe
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: v${{ github.run_number }}
release_name: Release ${{ github.run_number }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./q_bot.exe
asset_name: q_bot.exe
asset_content_type: application/octet-stream