Skip to content

Commit 503aec5

Browse files
committed
Add GitHub Actions workflow for publishing extensions to GH pages
1 parent 7424b9c commit 503aec5

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)