Skip to content

Commit 400274b

Browse files
authored
Migrate github action from ep_infos project to update static files (#299)
1 parent ada637e commit 400274b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
schedule:
3+
- cron: "0 1 * * *"
4+
workflow_dispatch:
5+
6+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Download info.json
18+
run: curl -o info.json https://static.etherpad.org/info.json
19+
- name: Download plugins
20+
run: curl -o plugins.json https://static.etherpad.org/plugins.json
21+
- name: Put to assets
22+
run: |
23+
mkdir -p assets
24+
mv info.json plugins.json assets/
25+
- name: Upload artifact
26+
uses: actions/upload-pages-artifact@v3.0.1
27+
with:
28+
path: './assets'
29+
- name: Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)