add demo deploy file
This commit is contained in:
parent
2fd309b5ef
commit
d506a75c10
1 changed files with 36 additions and 0 deletions
36
.gitea/workflows/deploy-test-demo.yaml
Normal file
36
.gitea/workflows/deploy-test-demo.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Hugo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: hugo-latest
|
||||||
|
steps:
|
||||||
|
- name: Grab packages
|
||||||
|
run: apt install -y rsync openssh-client
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
- name: Run build task
|
||||||
|
run: hugo --minify
|
||||||
|
- name: Test static page
|
||||||
|
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
|
||||||
|
- name: Deploy to Server
|
||||||
|
uses: https://git.myco.systems/mirrors/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
ARGS: "-rlgoDzvc -i --delete"
|
||||||
|
SOURCE: "public/"
|
||||||
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
|
TARGET: ${{ secrets.DEMO_REMOTE_TARGET }}
|
||||||
|
- name: Running Page Speed Insights
|
||||||
|
uses: https://github.com/JakePartusch/psi-action@v1.3
|
||||||
|
id: drafting
|
||||||
|
with:
|
||||||
|
url: "https://midtowndrafting.com"
|
||||||
|
threshold: 70
|
||||||
|
strategy: desktop
|
Loading…
Add table
Reference in a new issue