Files
poweronoff.click/.gitea/workflows/build.yml
T
Stan Nowogrudski 7e0920ec1c
Build and deploy the poweronoff.click hugo / build (push) Successful in 59s
Build Hugo via klakegg/hugo:0.87.0 container instead of downloading the binary
2026-10-14 08:54:48 +02:00

44 lines
1.1 KiB
YAML

name: Build and deploy the poweronoff.click hugo
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
uses: docker://klakegg/hugo:0.87.0
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: appleboy/scp-action@v0.1.7
with:
host: poweronoff.click
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: "public/*"
target: /var/www/poweronoff.click
rm: false
strip_components: 1
- name: Send Telegram notification
if: always()
uses: appleboy/telegram-action@v0.1.1
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
${{ github.repository }} — ${{ job.status }}
Commit: ${{ github.event.head_commit.message }}
${{ github.event.head_commit.url }}