Skip to content

Commit 3e15bb9

Browse files
committed
gh-pages: stop building guide for main
1 parent 9e9e913 commit 3e15bb9

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ jobs:
3939
TAG_NAME="${GITHUB_REF##*/}"
4040
echo "::set-output name=tag_name::${TAG_NAME}"
4141
42-
# Build some internal docs and inject a banner on top of it.
43-
- name: Build the internal docs
44-
run: cargo xtask doc --internal
45-
46-
- name: Clear the extra artefacts created earlier
47-
run: rm -rf target
48-
4942
# This builds the book in target/guide.
5043
- name: Build the guide
5144
run: |
@@ -54,43 +47,15 @@ jobs:
5447
env:
5548
PYO3_VERSION_TAG: ${{ steps.prepare_tag.outputs.tag_name }}
5649

57-
# This adds the docs to target/guide/doc
58-
- name: Build the doc
59-
run: |
60-
cargo xtask doc
61-
mv target/doc target/guide/doc
62-
echo "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > target/guide/doc/index.html
63-
6450
- name: Deploy docs and the guide
65-
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'release' }}
51+
if: ${{ github.event_name == 'release' }}
6652
uses: peaceiris/actions-gh-pages@v3
6753
with:
6854
github_token: ${{ secrets.GITHUB_TOKEN }}
6955
publish_dir: ./target/guide/
7056
destination_dir: ${{ steps.prepare_tag.outputs.tag_name }}
7157
full_commit_message: "Upload documentation for ${{ steps.prepare_tag.outputs.tag_name }}"
7258

73-
guide-release:
74-
needs: guide-build
75-
runs-on: ubuntu-latest
76-
if: ${{ github.event_name == 'release' }}
77-
steps:
78-
- name: Create latest tag redirects
79-
env:
80-
TAG_NAME: ${{ needs.build.outputs.tag_name }}
81-
run: |
82-
mkdir public
83-
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
84-
ln -sfT $TAG_NAME public/latest
85-
86-
- name: Deploy
87-
uses: peaceiris/actions-gh-pages@v3
88-
with:
89-
github_token: ${{ secrets.GITHUB_TOKEN }}
90-
publish_dir: ./public/
91-
full_commit_message: "Release ${{ needs.build.outputs.tag_name }}"
92-
keep_files: true
93-
9459
cargo-benchmark:
9560
if: ${{ github.ref_name == 'main' }}
9661
name: Cargo benchmark

0 commit comments

Comments
 (0)