Skip to content

Commit 9714005

Browse files
tirumerlashahnami
andauthored
chore: Merge main (#423)
* fix: Update rust docs workflow (#420) * chore: Deprecate Antora and adjust docs release workflow (#422) chore: Update docs release workflow --------- Co-authored-by: Nami <[email protected]>
1 parent 9ace8f2 commit 9714005

File tree

5 files changed

+9
-111
lines changed

5 files changed

+9
-111
lines changed

.github/workflows/release-please.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ jobs:
111111
if: always()
112112

113113
# Cargo lock update
114-
update-cargo-lockfile-antora-version:
115-
name: Update Cargo.lock and Antora version
114+
update-cargo-lockfile:
115+
name: Update Cargo.lock
116116
runs-on: ubuntu-latest
117117
needs: release-please
118118
if: ${{ needs.release-please.outputs.release_created == 'false' && needs.release-please.outputs.pr_created == 'true' }}
@@ -155,40 +155,15 @@ jobs:
155155
else
156156
echo "cargo_changed=false" >> $GITHUB_OUTPUT
157157
fi
158-
- name: Update Antora version
159-
id: update-antora
160-
run: |-
161-
MANIFEST=".github/release-please/manifest.json"
162-
ANTORA="docs/antora.yml"
163-
RAW_VERSION=$(jq -r '.["."]' "$MANIFEST")
164-
NEW_VERSION=${RAW_VERSION%.*}.x
165-
echo "Bumping Antora version to $NEW_VERSION in $ANTORA"
166-
sed -i -E "s/^version:.*/version: $NEW_VERSION/" "$ANTORA"
167-
git add "$ANTORA"
168-
if ! git diff --cached --quiet "$ANTORA"; then
169-
echo "antora_changed=true" >> $GITHUB_OUTPUT
170-
else
171-
echo "antora_changed=false" >> $GITHUB_OUTPUT
172-
fi
173158
- name: Commit cargo update
174-
if: ${{ steps.lock-file-commit.outputs.cargo_changed == 'true' || steps.update-antora.outputs.antora_changed == 'true' }}
175-
uses: iarekylew00t/verified-bot-commit@68c52beb4042b7038cf40c4daf6e469f118c686b # v2.0.5
159+
if: steps.lock-file-commit.outputs.cargo_changed == 'true'
160+
uses: iarekylew00t/verified-bot-commit@d7e8eea1f154881e1f9d70a3fd933e740148b7f4 # v2.1.1
176161
with:
177-
message: 'chore: Updating lock file and bumping version in antora file'
162+
message: 'chore: Updating lock file'
178163
token: ${{ steps.gh-app-token.outputs.token }}
179164
ref: ${{ needs.release-please.outputs.release_branch }}
180165
files: |-
181166
Cargo.lock
182-
docs/antora.yml
183-
184-
# Update rust docs link in nav.adoc
185-
update-rust-docs-link:
186-
needs: release-please
187-
if: ${{ needs.release-please.outputs.release_created == 'false' }}
188-
uses: ./.github/workflows/rust-docs-url.yml
189-
with:
190-
branch: ${{ github.ref_name }}
191-
secrets: inherit
192167
193168
# Trigger workflow to generate sbom
194169
release-sbom:

.github/workflows/rust-docs-url.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

Makefile.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[tasks.rust-antora]
2-
description = "Build Antora site and copy rust_docs"
1+
[tasks.rust-docs]
2+
description = "Update rust technical documentation"
33
script = [
44
"cargo doc --target-dir docs/rust_docs --release --no-deps --quiet --locked",
5-
"bash scripts/rust_antora.sh"
5+
"bash scripts/rust_docs.sh"
66
]
77

88
[tasks.docker-compose-up]

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[build]
22
base = "/"
3-
command = "rustup default stable && cargo install cargo-make --locked --force && cargo make rust-antora"
3+
command = "rustup default stable && cargo install cargo-make --locked --force && cargo make rust-docs"
44
publish = "docs/build/site"
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ set -euo pipefail
66
# Base directories
77
REPO_ROOT="$PWD"
88
DOCS_DIR="$REPO_ROOT/docs"
9-
NAME=$(grep '^name:' "$DOCS_DIR/antora.yml" | awk '{print $2}')
10-
VERSION=$(grep '^version:' "$DOCS_DIR/antora.yml" | awk '{print $2}')
119
BUILD_DIR="$DOCS_DIR/build/site"
1210
RUST_DOCS_DIR="$DOCS_DIR/rust_docs"
1311

0 commit comments

Comments
 (0)