Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (29 sloc) 800 Bytes
name: publish
on:
push:
branches:
- master
env:
HUGO_VERSION: "0.62.1"
jobs:
publish:
name: publish
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: "3.x"
architecture: "x64"
- name: install dependencies
run: |
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb
sudo dpkg -i hugo*.deb
pip install awscli
- name: publish
run: |
hugo
aws s3 sync public/ s3://sanderknape.com --delete
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
You can’t perform that action at this time.