-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.25 KB
/
save-assets.yml
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
42
43
44
45
46
47
name: Save Images and Videos to manual-assets repo
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare submodules
run: |
git submodule update --init --remote GMS2-Robohelp-en/
- name: Prepare environments
run: |
mkdir build
mkdir -p build/assets
- name: Copy images and videos
run: |
cp -r GMS2-Robohelp-en/assets/Images build/assets/Images
cp -r GMS2-Robohelp-en/assets/Videos build/assets/Videos
- name: Copy index.html
run: |
cd build
wget https://raw.githubusercontent.com/GamemakerChina/manual-assets/buildfiles/assets-index.html -O index.html
- name: Add Azure Static Web workflow
run: |
mkdir -p build/.github/workflows/
cp patch/azure-static-web-apps-assets.yml build/.github/workflows/
- name: Deploy to assets
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
repository-name: GamemakerChina/manual-assets
token: ${{ secrets.ACCESS_TOKEN }}
branch: main
folder: build