Skip to content

Commit

Permalink
ci: fix up updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Oct 14, 2024
1 parent d7c3e57 commit bf86c72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare

- name: get gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages

- uses: ./.github/actions/prepare

- name: Create a pages artifact
uses: actions/upload-pages-artifact@v3
with:
Expand All @@ -36,7 +37,7 @@ jobs:
uses: actions/deploy-pages@v4

- name: Store Coverage Badge
run: cp ./docs/generated/stable/coverage.svg /tmp/coverage.svg
run: cp ./docs/generated/coverage.svg /tmp/coverage.svg

- name: get gh-pages
uses: actions/checkout@v4
Expand All @@ -59,3 +60,5 @@ jobs:
git add docs/coverage.svg
git commit -m "docs: update documentation coverage badge"
git push
- uses: actions/checkout@v4
12 changes: 6 additions & 6 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: checkout the docs
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0
persist-credentials: false

- name: Set Package Json Version
env:
TAG: ${{ github.ref_name }}
run: npm version --no-git-tag-version "${TAG#v}"
run: npm version --no-git-tag-version "$(git describe --tags --abbrev=0)"

- uses: ./.github/actions/prepare

Expand All @@ -50,8 +50,6 @@ jobs:
ref: gh-pages
clean: false # doesn't seem to work?? Hence use of tar.

- uses: ./.github/actions/prepare

- name: Remove old docs
run: rm -rf ./docs/generated

Expand All @@ -66,3 +64,5 @@ jobs:
git commit -m "docs: update documentation"
git push
continue-on-error: true

- uses: actions/checkout@v4

0 comments on commit bf86c72

Please sign in to comment.