From 84b55e76bf1713bdf2ceb254695f7929557ba118 Mon Sep 17 00:00:00 2001 From: Pagwin Date: Thu, 20 Jan 2022 21:43:21 -0500 Subject: [PATCH] trying out github actions --- .github/workflows/website-publish.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/website-publish.yml diff --git a/.github/workflows/website-publish.yml b/.github/workflows/website-publish.yml new file mode 100644 index 0000000..c1d9e92 --- /dev/null +++ b/.github/workflows/website-publish.yml @@ -0,0 +1,29 @@ +name: Website publish + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + - name: Hugo Setup + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.91.2' + - name: Build + run: hugo --minify + - name: Deploy + uses: up9cloud/action-rsync@master + env: + HOST: pagwin.xyz + KEY: ${{secrets.SSH_KEY}} + TARGET: /var/www/pagwin.xyz/ +