pack: run the workflow only when the documentation page is pushed

This commit is contained in:
leejooy96 committed 2023-02-23 09:20:55 +09:00
1 parent 8d981b7184
commit 2cb566b49e
1 file changed
+3 -2
+3 -2
View File
@@ -1,9 +1,11 @@
name: documents name: documents
on: on:
# trigger deployment on every push to main branch # run every time a push occurs in the docs folder
push: push:
branches: [master] branches: [master]
paths:
- docs
# trigger deployment manually # trigger deployment manually
workflow_dispatch: workflow_dispatch:
@@ -20,7 +22,6 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v1
with: with:
# choose node.js version to use
node-version: '18' node-version: '18'
# cache node_modules # cache node_modules