Update .gitea/workflows/deploy.yaml
This commit is contained in:
parent
ed3a6ff65c
commit
026a658cea
1 changed files with 14 additions and 12 deletions
|
@ -1,24 +1,26 @@
|
|||
name: Static
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: hugo-latest
|
||||
|
||||
container:
|
||||
image: fung.uy/mycosystems/web-ci:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
submodules: 'true'
|
||||
- name: pre-compress
|
||||
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
|
||||
- name: Deploy to Server
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.CRUNCHBITS_PA_PRIVATE_KEY }}
|
||||
- name: Deploy to Server
|
||||
uses: https://fung.uy/mirrors/ssh-deploy@main
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.PA_SSH_KEY }}
|
||||
ARGS: "-rlgoDzvc -i --delete"
|
||||
SOURCE: "public/"
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||
REMOTE_HOST: ${{ secrets.PA_HOST }}
|
||||
REMOTE_USER: ${{ secrets.PA_USER }}
|
||||
TARGET: ${{ secrets.PA_DATA_DIR }}/myco.systems
|
||||
|
|
Loading…
Add table
Reference in a new issue