Skip to content

Commit 7b68f68

Browse files
Add a workflow to deploy the website
1 parent bbbafcc commit 7b68f68

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Publish docs via GitHub Pages
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
name: Deploy docs
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Checkout plugin-boilerplate
21+
uses: actions/checkout@v4
22+
with:
23+
path: ./app-plugin-boilerplate
24+
repository: LedgerHQ/app-plugin-boilerplate
25+
ref: develop
26+
27+
- name: Configure Git Credentials
28+
run: |
29+
git config --global user.name "github-actions[bot]"
30+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
31+
32+
- name: Install python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: 3.x
36+
37+
- name: Install requirements
38+
run: pip install -r docs/requirements.txt
39+
40+
- name: Deploy docs
41+
run: |
42+
mkdocs gh-deploy --force
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)