2020-07-18 07:44:20 +02:00
|
|
|
name: Build and Deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'actix/actix-website'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
persist-credentials: false # This is needed to deploy on checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
2020-12-21 19:18:10 +01:00
|
|
|
hugo-version: '0.79.1'
|
2020-07-18 07:44:20 +02:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: hugo --minify
|
|
|
|
|
|
|
|
- name: Deploy to GitHub Pages
|
2020-11-24 22:11:26 +01:00
|
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
2020-07-18 07:44:20 +02:00
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
BRANCH: master
|
|
|
|
FOLDER: public
|
|
|
|
REPOSITORY_NAME: actix/actix.github.io
|