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

github.com/rmsubekti/the-roots-home.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahmat Subekti <su@bekti.net>2020-06-29 18:48:56 +0300
committerGitHub <noreply@github.com>2020-06-29 18:48:56 +0300
commit9e194a09ca5cfaab8cf1f531a4abbb12d4854610 (patch)
tree1ceccc52713311e1bd0d44c01f3cb290cb94b9ed
parent503f8af379bff358904be9fa6f6a01bd75ebb183 (diff)
Create blank.yml
-rw-r--r--.github/workflows/blank.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml
new file mode 100644
index 0000000..03695de
--- /dev/null
+++ b/.github/workflows/blank.yml
@@ -0,0 +1,49 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ push:
+ branches: [ testing ]
+ pull_request:
+ branches: [ testing ]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ deploy:
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ ref: testing
+ submodules: recursive # Fetch the Docsy theme
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: '0.71.1'
+ extended: true
+
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+
+ - name: Cache dependencies
+ uses: actions/cache@v1
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+
+ - run: npm ci
+ - run: hugo --minify
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}