Compare commits
1 Commits
v0.1.0-dev
...
v0.1.0-mai
Author | SHA1 | Date | |
---|---|---|---|
e3895b6d1a |
@@ -3,6 +3,7 @@ name: Release Tagging
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- main
|
||||||
- devel
|
- devel
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # Trigger on tags matching v*
|
- 'v*' # Trigger on tags matching v*
|
||||||
@@ -19,7 +20,7 @@ jobs:
|
|||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: 1.86.0
|
toolchain: 1.85.0
|
||||||
components: cargo
|
components: cargo
|
||||||
|
|
||||||
- name: Extract Version from Cargo.toml
|
- name: Extract Version from Cargo.toml
|
||||||
@@ -42,12 +43,6 @@ jobs:
|
|||||||
echo "Printing version"
|
echo "Printing version"
|
||||||
echo "Version: ${{ steps.version.outputs.project_tag_release }}"
|
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
|
- name: Create GitHub Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
|
Reference in New Issue
Block a user