Setup GitHub Actions for deploying to docs.joinmastodon.org
This commit is contained in:
parent
0f20d82086
commit
aafbd71eae
|
@ -0,0 +1,31 @@
|
|||
name: Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.62.1'
|
||||
extended: true
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy
|
||||
uses: easingthemes/ssh-deploy@v2.0.7
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
ARGS: "-rltgoDzvO"
|
||||
SOURCE: ./public/
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
Loading…
Reference in New Issue