Skip to content

Commit 9f34925

Browse files
committed
ci: add workflow inspired by @jeeb's
1 parent c799376 commit 9f34925

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: build
2+
3+
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: ["ci"]
8+
9+
jobs:
10+
webpage:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Checkout build sources
16+
uses: actions/checkout@v2
17+
with:
18+
repository: mpv-player/mpv.io
19+
20+
- name: Checkout build result repository
21+
uses: actions/checkout@v2
22+
with:
23+
repository: mpv-player/mpv-player.github.io
24+
ref: master
25+
path: build
26+
fetch-depth: 0
27+
28+
- name: Install OS dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y docutils-common
32+
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: "2.1"
37+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
38+
39+
- name: Build site and manual
40+
run: |
41+
rake travis
42+
43+
- name: Push results
44+
run: |
45+
pushd build
46+
git push origin master
47+
popd

0 commit comments

Comments
 (0)