Merge pull request #53 from bannek/master #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: build and deploy to GitHub Pages | |
runs-on: ubuntu-latest | |
env: | |
HUGO_VERSION: 0.18.1 | |
HUGO_BINARY: hugo_0.18.1_Linux-64bit | |
steps: | |
- uses: actions/checkout@master | |
- name: Get Hugo tar | |
run: | | |
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | |
- name: Extract Hugo binary | |
run: | | |
tar xvzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz | |
mv hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 /usr/local/bin/hugo | |
- name: Build site | |
run: | | |
hugo --buildFuture | |
echo "garaza.io" > public/CNAME | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: [email protected]:garazaFRI/garazafri.github.io.git | |
BRANCH: master | |
#SQUASH_HISTORY: true | |
FOLDER: public | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_DEPLOY_KEY }} |