mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
610: GHA: Print current crate version too r=perlindgren a=AfoHT 613: Docs: fix link r=perlindgren a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
This commit is contained in:
commit
9fb51f2cdd
2 changed files with 5 additions and 3 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -463,8 +463,10 @@ jobs:
|
||||||
# followed by MAJOR.MINOR.PATCH, see semver.org
|
# followed by MAJOR.MINOR.PATCH, see semver.org
|
||||||
# Store first in array as stable
|
# Store first in array as stable
|
||||||
stable=${vers}
|
stable=${vers}
|
||||||
|
crateversion={{ env.versionmajor }}
|
||||||
|
|
||||||
echo "Stable version: $stable"
|
echo "Latest stable version: $stable"
|
||||||
|
echo "Current crate version: $crateversion"
|
||||||
|
|
||||||
# Create directories
|
# Create directories
|
||||||
td=$(mktemp -d)
|
td=$(mktemp -d)
|
||||||
|
@ -481,7 +483,7 @@ jobs:
|
||||||
# Create the redirects for dev-version
|
# Create the redirects for dev-version
|
||||||
# If the current stable and the version being built differ,
|
# If the current stable and the version being built differ,
|
||||||
# then there is a dev-version and the links should point to it.
|
# then there is a dev-version and the links should point to it.
|
||||||
if [[ "$stable" != "{{ env.versionmajor }}" ]];
|
if [[ "$stable" != "$crateversion" ]];
|
||||||
then
|
then
|
||||||
sed 's|URL|rtic/index.html|g' redirect.html > $td/$devver/api/index.html
|
sed 's|URL|rtic/index.html|g' redirect.html > $td/$devver/api/index.html
|
||||||
sed 's|URL|book/en|g' redirect.html > $td/$devver/index.html
|
sed 's|URL|book/en|g' redirect.html > $td/$devver/index.html
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
New features should go through the [RFC process][rfcs] before creating a Pull Request to this repository.
|
New features should go through the [RFC process][rfcs] before creating a Pull Request to this repository.
|
||||||
|
|
||||||
[rfcs](https://github.com/rtic-rs/rfcs)
|
[rfcs]: https://github.com/rtic-rs/rfcs
|
||||||
|
|
||||||
## Bugs
|
## Bugs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue