pedini.dev/.gitea/workflows/deploy.yaml
Bryan Joshua Pedini 3a7beeade5
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 9s
apt update, of course, now install hugo!
2024-08-21 22:38:18 +02:00

29 lines
673 B
YAML

---
name: Deploy website on production server when committing on main
concurrency: 1
on:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > /private.key
- run: chmod 600 /private.key
- run: apt update && apt install -y hugo
- uses: actions/checkout@v4
- run: APP_VERSION=latest make
- run: |
SSH_PRIVATE_KEY=/private.key
SSH_USERNAME=${{ secrets.SSH_USERNAME }}
DEPLOYMENT_HOST=${{ secrets.DEPLOYMENT_HOST }}
DEPLOYMENT_PATH=${{ secrets.DEPLOYMENT_PATH }}
make deploy