mirror of
https://github.com/mastodon/documentation
synced 2025-04-11 22:56:17 +02:00
Setup GitHub Actions for deploying to docs.joinmastodon.org
This commit is contained in:
parent
0f20d82086
commit
aafbd71eae
31
.github/workflows/publish.yml
vendored
Normal file
31
.github/workflows/publish.yml
vendored
Normal file
@ -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…
x
Reference in New Issue
Block a user