Release #11
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-release: | |
| name: Build and Release | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| - name: Build Release Binary | |
| run: cargo build --release --verbose | |
| - name: Prepare artifacts | |
| run: | | |
| mkdir -p release-artifacts | |
| cp target/release/rustltfs.exe release-artifacts/ | |
| cp README.md release-artifacts/ | |
| cp LICENSE.md release-artifacts/ | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| release-artifacts/rustltfs.exe | |
| release-artifacts/README.md | |
| release-artifacts/LICENSE.md | |
| draft: false | |
| prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }} | |
| generate_release_notes: true | |
| body: | | |
| ## RustLTFS ${{ github.ref_name }} | |
| ### 文档 | |
| 完整文档请参考 [README.md](https://github.com/${{ github.repository }}/blob/main/README.md) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |