Skip to content

Commit 6506dfa

Browse files
committed
As we do not run the doc workflow for anything but main, it seems reasonable to simplify the workflow.
1 parent 46c524c commit 6506dfa

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/doc.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,17 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11-
outputs:
12-
tag_name: ${{ steps.prepare_tag.outputs.tag_name }}
1311
steps:
1412
- uses: actions/checkout@v2
1513
- name: Build the doc
1614
run: |
1715
cargo doc --all-features --no-deps
1816
echo "<meta http-equiv=refresh content=0;url=pyo3/index.html>" > target/doc/index.html
1917
20-
- name: Prepare tag
21-
id: prepare_tag
22-
run: |
23-
TAG_NAME="${GITHUB_REF##*/}"
24-
echo "::set-output name=tag_name::${TAG_NAME}"
25-
2618
- name: Deploy
2719
uses: peaceiris/[email protected]
2820
with:
2921
github_token: ${{ secrets.GITHUB_TOKEN }}
3022
publish_dir: ./target/doc/
31-
destination_dir: ${{ steps.prepare_tag.outputs.tag_name }}
32-
full_commit_message: 'Upload documentation for ${{ steps.prepare_tag.outputs.tag_name }}'
23+
destination_dir: .
24+
full_commit_message: 'Upload documentation for current main'

0 commit comments

Comments
 (0)