diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce685d8a..c1e16c52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..8af68f83 --- /dev/null +++ b/.github/workflows/release.yml @@ -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