Browse Source

chore(actions): publish docs on new release

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/497/head
Pranav C 3 years ago
parent
commit
db22b90bfb
  1. 6
      .github/workflows/publish-docs.yml

6
.github/workflows/publish-docs.yml

@ -3,6 +3,8 @@ name: "Publish : Docs"
on: on:
push: push:
branches: [ master ] branches: [ master ]
release:
types: [ published ]
jobs: jobs:
copy-file: copy-file:
@ -21,7 +23,7 @@ jobs:
with: with:
node-version: 14 node-version: 14
- name: Build docs - name: Build docs
if: ${{ env.CHANGED == 'OK' }} if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }}
run: | run: |
cd packages/noco-docs cd packages/noco-docs
npm install npm install
@ -29,7 +31,7 @@ jobs:
- name: Pushes generated output - name: Pushes generated output
if: ${{ env.CHANGED == 'OK' }} if: ${{ env.CHANGED == 'OK' || github.event_name == 'release' }}
uses: dmnemec/copy_file_to_another_repo_action@main uses: dmnemec/copy_file_to_another_repo_action@main
env: env:
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}

Loading…
Cancel
Save