Workflow changes (#9)
All checks were successful
Rust Build / Check (pull_request) Successful in 28s
Rust Build / Clippy (push) Successful in 34s
Rust Build / build (push) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Clippy (pull_request) Successful in 30s
Rust Build / build (pull_request) Successful in 30s
Release Tagging / release (push) Successful in 36s
Rust Build / Check (push) Successful in 30s
Rust Build / Test Suite (push) Successful in 30s
Rust Build / Rustfmt (push) Successful in 26s
All checks were successful
Rust Build / Check (pull_request) Successful in 28s
Rust Build / Clippy (push) Successful in 34s
Rust Build / build (push) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Rustfmt (pull_request) Successful in 27s
Rust Build / Clippy (pull_request) Successful in 30s
Rust Build / build (pull_request) Successful in 30s
Release Tagging / release (push) Successful in 36s
Rust Build / Check (push) Successful in 30s
Rust Build / Test Suite (push) Successful in 30s
Rust Build / Rustfmt (push) Successful in 26s
Reviewed-on: #9 Co-authored-by: phoenix <kundeng94@gmail.com> Co-committed-by: phoenix <kundeng94@gmail.com>
This commit is contained in:
@@ -3,7 +3,6 @@ name: Release Tagging
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- devel
|
||||
tags:
|
||||
- 'v*' # Trigger on tags matching v*
|
||||
@@ -20,7 +19,7 @@ jobs:
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.85.0
|
||||
toolchain: 1.86.0
|
||||
components: cargo
|
||||
|
||||
- name: Extract Version from Cargo.toml
|
||||
@@ -43,6 +42,12 @@ jobs:
|
||||
echo "Printing version"
|
||||
echo "Version: ${{ steps.version.outputs.project_tag_release }}"
|
||||
|
||||
- name: Check Branch
|
||||
if: github.ref != 'refs/heads/devel' || github.ref != 'refs/heads/devel' # Replace 'main' with your required branch
|
||||
run: |
|
||||
echo "::error::Release can only be created from the 'main' branch."
|
||||
exit 1
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
Reference in New Issue
Block a user