Skip to content

Commit

Permalink
Adding GitHub Workflow instead of TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Oct 18, 2019
1 parent a77b5de commit 81ff7ba
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 37 deletions.
3 changes: 0 additions & 3 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ update_configs:
update_schedule: "daily"
default_assignees:
- "ruzickap"
default_labels:
- "dependencies"
- "submodules"
48 changes: 48 additions & 0 deletions .github/workflows/hugo-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "hugo-build"

on:
push:
branches: [master]

jobs:
hugo-build:
name: "Hugo build"
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
with:
submodules: true

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.2.2
with:
hugo-version: '0.58.3'

- name: Build
run: |
hugo --gc
cp LICENSE README.md public/
echo ${GITHUB_REPOSITORY##*/} > public/CNAME
- name: "Check links"
run: |
echo "127.0.0.1 ${GITHUB_REPOSITORY##*/}" | sudo tee -a /etc/hosts
curl -s https://getcaddy.com | bash -s personal
cat > Caddyfile << EOF
https://${GITHUB_REPOSITORY##*/}
root public
tls self_signed
EOF
sudo caddy -quiet &
go get -u github.com/raviqqe/muffet
~/go/bin/muffet --skip-tls-verification --buffer-size=8192 --exclude "https://www.linkedin.com/in/petrruzicka/" https://${GITHUB_REPOSITORY##*/}
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: public/
with:
emptyCommits: false
forceOrphan: true
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Petr Ruzicka

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Personal web page

[![Build Status](https://travis-ci.com/ruzickap/petr.ruzicka.dev.svg?branch=master)](https://travis-ci.com/ruzickap/petr.ruzicka.dev)
![Build Status](https://github.com/ruzickap/petr.ruzicka.dev/workflows/hugo-build/badge.svg)

## Instalation

Expand Down

0 comments on commit 81ff7ba

Please sign in to comment.