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

github.com/athul/archie.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAthul Cyriac Ajay <athul8720@gmail.com>2020-04-11 09:20:25 +0300
committerGitHub <noreply@github.com>2020-04-11 09:20:25 +0300
commit6e15d559f7cb6044de7b9f3560dd36ff6f174053 (patch)
treef19002b9dcc70867b191e82187841e5ec30afa8d
parentdd1c9af419865b0a2048dbdc29b535d6448f9466 (diff)
Create main.yml
-rw-r--r--.github/workflows/main.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..a56da9f
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,27 @@
+name: github pages
+
+on:
+ push:
+ branches:
+ - site
+
+jobs:
+ build-deploy:
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@master
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2.2.0
+ with:
+ hugo-version: '0.58.3'
+
+ - name: Build
+ run: hugo --gc --minify --cleanDestinationDir
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v2.4.0
+ env:
+ ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
+ PUBLISH_BRANCH: gh-pages
+ PUBLISH_DIR: ./public