From e3623253fac461ec43fe63b8727e9061b8e10b8b Mon Sep 17 00:00:00 2001 From: Gregory Hellings Date: Wed, 26 Aug 2020 07:47:39 -0500 Subject: [PATCH] Add deployment code --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ffa0c05 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Build site and deploy + +on: push + +jobs: + build: + name: Build site and deploy + runs-on: ubuntu-20.04 + matrix: + version: "0.69.0" + steps: + - uses: actions/checkout@v2 + - name: Install Hugo + run: | + wget https://github.com/gohugoio/hugo/releases/download/v${{ matrix.version }}/hugo_extended_${{ matrix.version }}_Linux-64bit.tar.gz + tar xaf *.tar.gz hugo + - name: Build site + run: | + set -ex + ./hugo -v + ./hugo -v deploy + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}