-
Notifications
You must be signed in to change notification settings - Fork 20
46 lines (38 loc) · 1.05 KB
/
build.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
name: build
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
on:
workflow_dispatch:
push:
branches: ["ci"]
jobs:
webpage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Checkout build sources
uses: actions/checkout@v3
with:
repository: mpv-player/mpv.io
- name: Checkout build result repository
uses: actions/checkout@v3
with:
repository: mpv-player/mpv-player.github.io
ref: master
path: build
fetch-depth: 0
- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get install -y docutils-common
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build site and manual
run: |
rake travis
- name: Push results
run: |
pushd build
git push origin master
popd