Skip to content

Commit b89ff89

Browse files
committed
start CI
1 parent 2e6f32d commit b89ff89

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# On file change, update submodule of sigpwny/websites using a CI bot commit.
2+
name: Deploy guide changes to sigpwny/websites
3+
on:
4+
push:
5+
paths:
6+
- '!./README.md'
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
jobs:
11+
update:
12+
name: Update git submodule
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Install SSH Client 🔑
17+
uses: webfactory/[email protected]
18+
with:
19+
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
20+
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
with:
24+
repository: sigpwny/websites
25+
submodules: true
26+
27+
- name: Pull & update submodules recursively
28+
run: |
29+
git submodule update --init --recursive
30+
git submodule update --recursive --remote
31+
32+
- name: Commit
33+
run: |
34+
git config user.email "[email protected]"
35+
git config user.name "GitHub Actions - update submodules"
36+
git add --all
37+
git commit -m "Update submodules" || echo "No changes to commit"
38+
git push

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Guides
2+
3+
This repo houses all the guides / docs for SIGPwny.
4+
5+
All docs are written in markdown and rendered with mdbook.
6+
7+
You can read the mdbook docs [here](https://rust-lang.github.io/mdBook/).
8+
9+
Guides are built and deployed through the [sigpwny/websites](https://github.com/sigpwny/websites) monorepo.
10+
11+
## Quick setup
12+
13+
```bash
14+
# install rust
15+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
16+
# install mdbook
17+
cargo install mdbook
18+
# <name of book>
19+
mdbook watch fallctf-2023
20+
```

0 commit comments

Comments
 (0)