vitrine/.forgejo/workflows/build.yml
Félix Piédallu c23828dd73
Some checks failed
/ Build the website (push) Successful in 1m58s
/ Deploy the new website (push) Failing after 4s
action: use sftp
2025-10-02 15:22:50 +02:00

56 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 }}
sftp my_webapp@semalibre.com <<< "put website/ wwwnext/; rename www wwwold; rename wwwnext www"