Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/janraasch/hugo-scroll.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Raasch <jan@janraasch.com>2020-07-09 11:24:55 +0300
committerGitHub <noreply@github.com>2020-07-09 11:24:55 +0300
commit137977cf3c174a20d873419040b227d7c7db6a16 (patch)
tree4abdd2b481852cd1dd8143e30656d4d13cd8db3d
parenta7fcc36fed7f22b8eabdaeb9dbf1a63e7f96206e (diff)
chore(ci): add github workflow
-rw-r--r--.github/workflows/ci.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..3e0260a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,32 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-18.04
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: latest
+
+ - name: Build local ./exampleSite
+ run: hugo --minify --gc --source ./exampleSite --baseURL https://janraasch.github.io/hugo-scroll/
+
+ - name: Deploy to GitHub Pages
+ if: github.event_name == 'push' && github.event.ref == 'master'
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./public