Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 590ffa4

Browse files
committed
Switch auto-deploy to GHA
1 parent 2a8d9d3 commit 590ffa4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
# Only run when merging to master, because it uses secrets.
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
mdbook:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: erlef/setup-elixir@v1
15+
with:
16+
otp-version: "1.11.0"
17+
elixir-version: "23.2"
18+
- run: mix do local.rebar --force, local.hex --force, deps.get, run
19+
- run: echo -ne "machine github.com\nlogin ${{secrets.DEPLOY_LOGIN}}\npassword ${{secrets.DEPLOY_PASSWORD}}\n" > $HOME/.netrc && chmod 600 ~/.netrc
20+
- run: git config --global --add user.name "Github Actions"
21+
- run: git config --global --add user.email "github-action@users.noreply.github.com"
22+
- run: git -C _docsubmit init
23+
- run: git -C _docsubmit add .
24+
- run: git -C _docsubmit commit -m "Deploy page"
25+
- run: git -C _docsubmit remote add origin https://github.com/bors-ng/rfcs
26+
- run: git -C _docsubmit push -f origin HEAD:gh-pages
27+

0 commit comments

Comments
 (0)