Skip to content

Commit

Permalink
Merge pull request #398 from OpenImaging/move-publish-docs-ci
Browse files Browse the repository at this point in the history
Move publish-docs job to release workflow
  • Loading branch information
dchiquito authored Mar 24, 2022
2 parents 518384c + 35bfb04 commit 42bd0c2
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 42bd0c2

Please sign in to comment.