File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Extenssions
2+
3+ on :
4+ # Triggers the workflow on push or pull request events but only for the develop branch
5+ push :
6+ branches :
7+ - develop
8+ paths :
9+ - ' extensions/**'
10+ workflow_dispatch :
11+
12+ jobs :
13+ publish :
14+ name : Publish to GH pages
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout develop
18+ uses : actions/checkout@v2
19+ with :
20+ ref : develop
21+ - name : Upload extensions from develop
22+ uses : actions/upload-artifact@v4
23+ with :
24+ name : extensions
25+ path : extensions
26+ - uses : actions/checkout@v2
27+ with :
28+ ref : gh-pages
29+ - name : Download artifact created by build job
30+ uses : actions/download-artifact@v4
31+ with :
32+ name : extensions
33+ path : docs/extensions
34+ - name : Commit the new/updated doc
35+ run : |
36+ git pull
37+ git add docs/extensions*
38+ git config --local user.name "GitHub Actions"
39+ git config --local user.email "actions@github.com"
40+ git commit --allow-empty -m "Automated build"
41+ git push origin
You can’t perform that action at this time.
0 commit comments