mirror of
https://github.com/Pagwin-Fedora/website.git
synced 2025-07-18 07:25:43 +00:00
trying out github actions
This commit is contained in:
parent
b44da93e20
commit
84b55e76bf
1 changed files with 29 additions and 0 deletions
29
.github/workflows/website-publish.yml
vendored
Normal file
29
.github/workflows/website-publish.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Website publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Code Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Hugo Setup
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: '0.91.2'
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify
|
||||||
|
- name: Deploy
|
||||||
|
uses: up9cloud/action-rsync@master
|
||||||
|
env:
|
||||||
|
HOST: pagwin.xyz
|
||||||
|
KEY: ${{secrets.SSH_KEY}}
|
||||||
|
TARGET: /var/www/pagwin.xyz/
|
||||||
|
|
Loading…
Reference in a new issue