Skip to content

测试

测试 #12

name: Rust
on:
push:
tags:
- "v*"
jobs:
build-win:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: Build
run: cargo build --release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
append_body: true
files: target/release/q_bot.exe
token: ${{ secrets.T }}
tag_name: ${{ github.ref }}
name: Q_Bot ${{ github.ref_name }}
draft: false
prerelease: false
env:

Check failure on line 38 in .github/workflows/build-and-publish.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-publish.yml (Line: 38, Col: 13): Unexpected value '' .github/workflows/build-and-publish.yml (Line: 39, Col: 9): Unexpected value 'GITHUB_TOKEN'
GITHUB_TOKEN: ${{ secrets.T}}