ci: Fix release workflow
By default, the `checkout@v4` action does a shallow clone, so we weren't getting the history.
This commit is contained in:
parent
081af03362
commit
345fa57b64
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
- name: Get tags
|
||||
run: git fetch --tags origin
|
||||
run: git fetch --prune --unshallow --tags origin
|
||||
- name: Configure build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
@ -62,7 +62,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get tags
|
||||
run: git fetch --tags origin
|
||||
run: git fetch --prune --unshallow --tags origin
|
||||
- name: Configure build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
|
|||
2
build.rs
2
build.rs
|
|
@ -68,7 +68,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
.map(|last| format!("{}-dev", last.trim()))
|
||||
}
|
||||
// If there are no tags found, we'll just call this a pre-release.
|
||||
.unwrap_or(String::from("1.0.0-rc.1"));
|
||||
.unwrap_or(String::from("pre-release"));
|
||||
|
||||
// Set a build-time `GIT_COMMIT_TIME` env var which includes the commit time.
|
||||
let commit_time = Command::new("git")
|
||||
|
|
|
|||
Loading…
Reference in New Issue