vitrine/.forgejo/workflows/build.yml
Félix Piédallu 449f790df5
All checks were successful
/ Build the website (push) Successful in 1m54s
/ Deploy the new website (push) Successful in 5s
push to www/
2025-10-02 15:34:35 +02:00

58 lines
1.2 KiB
YAML

on:
push:
branches: [main]
jobs:
build:
runs-on: vps
name: Build the website
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
# - name: Check image paths consistency
# run: bash scripts/check_missing_or_bad_image_path.sh
# - name: Set up Python
# uses: actions/setup-python@v5
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- name: Installation
run: yarn
# - name: Check translations pages consistency
# run: python3 ./scripts/check_i18n_consistency.py
- name: Build the website
run: yarn build
- name: Archive the website
uses: actions/upload-artifact@v3
with:
name: website
path: build/
deploy:
name: Deploy the new website
needs: build
runs-on: vps
steps:
- name: Download the built website artifact
uses: actions/download-artifact@v3
with:
name: website
path: website
- name: Deploy
run: sshpass -p ${{ secrets.DOC_SFTP_PWD }}
rsync -avz --delete
-e "ssh -o StrictHostKeyChecking=no"
website/ my_webapp@semalibre.com:~/www/