Skip to content

Commit 61a8f21

Browse files
committed
CI: simplify publish-docs job.
1 parent 2d379d0 commit 61a8f21

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ jobs:
9898
branch: main
9999
folder: docs/
100100
target-folder: docs/amaranth/latest/
101-
- name: Extract release version
102-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
103-
run: echo "VERSION=$(python setup.py --version)" >>$GITHUB_ENV
104101
- name: Publish release documentation
105102
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
106103
uses: JamesIves/github-pages-deploy-action@releases/v4
@@ -109,7 +106,7 @@ jobs:
109106
ssh-key: ${{ secrets.PAGES_DEPLOY_KEY }}
110107
branch: main
111108
folder: docs/
112-
target-folder: docs/amaranth/v${{ env.VERSION }}/
109+
target-folder: docs/amaranth/${{ github.ref_name }}/
113110
publish-docs-dev:
114111
needs: document
115112
if: github.repository != 'amaranth-lang/amaranth'

0 commit comments

Comments
 (0)