Skip to content

Commit

Permalink
Move publish docs job to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Mar 24, 2022
1 parent b725dff commit 35bfb04
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,3 @@ jobs:
- run: npm ci
- run: npm run lint -- --no-fix
- run: npm run build
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
- name: Prepare CI
run: rm .git/hooks/pre-push
- name: Publish docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: NPM Publish
on:
release:
types: [published]

jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# "ref" specifies the branch to check out.
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted
ref: ${{ github.event.release.target_commitish }}
- name: Prepare CI
run: rm .git/hooks/pre-push
- name: Publish docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base

0 comments on commit 35bfb04

Please sign in to comment.