From a73043a65c665217f7880c3e45be7d0109649dd9 Mon Sep 17 00:00:00 2001 From: Andre Beging Date: Tue, 11 Feb 2020 15:04:48 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..60a158d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: github pages + +on: + push: + branches: + - master + +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: 'latest' + + - name: Build + run: hugo --gc --cleanDestinationDir --baseURL https://ndws.beging.de/ -v + + - name: Check dir + run: ls public/media + + - 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