-
Notifications
You must be signed in to change notification settings - Fork 75
41 lines (39 loc) · 1.08 KB
/
publish_extensions_push.yml
File metadata and controls
41 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish Extenssions
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches:
- develop
paths:
- 'extensions/**'
workflow_dispatch:
jobs:
publish:
name: Publish to GH pages
runs-on: ubuntu-latest
steps:
- name: Checkout develop
uses: actions/checkout@v2
with:
ref: develop
- name: Upload extensions from develop
uses: actions/upload-artifact@v4
with:
name: extensions
path: extensions
- uses: actions/checkout@v2
with:
ref: gh-pages
- name: Download artifact created by build job
uses: actions/download-artifact@v4
with:
name: extensions
path: docs/extensions
- name: Commit the new/updated doc
run: |
git pull
git add docs/extensions*
git config --local user.name "GitHub Actions"
git config --local user.email "actions@github.com"
git commit --allow-empty -m "Automated build"
git push origin