This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal-reqsign.git
The following commit(s) were added to refs/heads/main by this push:
new 54de7a2 chore: metadata and release workflow (#645)
54de7a2 is described below
commit 54de7a2c0df10714573decb3f631ef77f333b313
Author: tison <[email protected]>
AuthorDate: Sat Oct 4 00:01:11 2025 +0800
chore: metadata and release workflow (#645)
Signed-off-by: tison <[email protected]>
---
.github/workflows/release.yml | 26 +++-----------------------
Cargo.toml | 2 +-
2 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 86f38f1..99023e1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,37 +20,17 @@ name: Release
on:
workflow_dispatch:
push:
- tags:
- - 'v*'
+ # only for formal releases, not for release candidates
+ tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
env:
CARGO_TERM_COLOR: always
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
jobs:
- # Check if this is a pre-release version
- check-version:
- name: Check version
- runs-on: ubuntu-latest
- outputs:
- is_prerelease: ${{ steps.check.outputs.is_prerelease }}
- steps:
- - name: Check if pre-release
- id: check
- run: |
- if [[ "${{ github.ref_name }}" =~ -rc\. ]]; then
- echo "is_prerelease=true" >> $GITHUB_OUTPUT
- echo "This is a pre-release version, skipping publish"
- else
- echo "is_prerelease=false" >> $GITHUB_OUTPUT
- echo "This is a release version, proceeding with publish"
- fi
-
- # Publish Workspace
publish:
name: Publish Workspace
- runs-on: ubuntu-latest
- needs: check-version
+ runs-on: ubuntu-24.04
if: needs.check-version.outputs.is_prerelease == 'false'
steps:
- uses: actions/checkout@v5
diff --git a/Cargo.toml b/Cargo.toml
index df08d4f..5641aac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,7 +22,7 @@ resolver = "2"
[workspace.package]
edition = "2024"
license = "Apache-2.0"
-repository = "https://github.com/Xuanwo/reqsign"
+repository = "https://github.com/apache/opendal-reqsign"
rust-version = "1.85.0"
[workspace.dependencies]