diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 141e94972..94a24dff1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: steps: - name: Checkout source code uses: actions/checkout@v4 + - name: Get tags + run: git fetch --tags origin - name: Configure build cache uses: actions/cache@v4 with: @@ -59,6 +61,8 @@ jobs: - x86_64-apple-darwin steps: - uses: actions/checkout@v4 + - name: Get tags + run: git fetch --tags origin - name: Configure build cache uses: actions/cache@v4 with: diff --git a/build.rs b/build.rs index 620232c60..782c068f2 100644 --- a/build.rs +++ b/build.rs @@ -68,7 +68,7 @@ fn main() -> Result<(), Box> { .map(|last| format!("{}-dev", last.trim())) } // If there are no tags found, we'll just call this a pre-release. - .unwrap_or(String::from("pre-release")); + .unwrap_or(String::from("1.0.0-rc.1")); // Set a build-time `GIT_COMMIT_TIME` env var which includes the commit time. let commit_time = Command::new("git")