Skip to content

Commit 92d2326

Browse files
authored
Move page build to GitHub Actions (#58)
* add github action for deploy Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * use different action Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * another different action Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * tweaks and remove travis config Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com> * remove netlify Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
1 parent c68abc3 commit 92d2326

File tree

4 files changed

+32
-48
lines changed

4 files changed

+32
-48
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Push to GitHub Pages on push to src
2+
on:
3+
push:
4+
branches:
5+
- src
6+
7+
jobs:
8+
build:
9+
name: Deploy
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout master
13+
uses: actions/checkout@v2.3.4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v2
19+
with:
20+
hugo-version: '0.55.5'
21+
22+
- name: Build
23+
run: hugo
24+
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
commit_message: ${{ github.event.head_commit.message }}
30+
publish_dir: ./public
31+
publish_branch: master
32+
cname: dev-sec.io

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

deploy.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

netlify.toml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)