1
0
mirror of https://github.com/actix/actix-website synced 2025-01-23 00:25:55 +01:00

33 lines
745 B
YAML
Raw Normal View History

2020-07-18 14:44:20 +09: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-22 03:18:10 +09:00
hugo-version: '0.79.1'
2020-07-18 14:44:20 +09:00
- name: Build
run: hugo --minify
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.1
2020-07-18 14:44:20 +09:00
with:
token: ${{ secrets.ACCESS_TOKEN }}
branch: master
folder: public
repository-name: actix/actix.github.io