From 9e194a09ca5cfaab8cf1f531a4abbb12d4854610 Mon Sep 17 00:00:00 2001 From: Rahmat Subekti Date: Mon, 29 Jun 2020 22:48:56 +0700 Subject: Create blank.yml --- .github/workflows/blank.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/blank.yml 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 }} -- cgit v1.2.3