Update .gitea/workflows/ci.yml

This commit is contained in:
jpd committed 2026-09-30 09:19:48 +01:00
1 parent aa888158a6
commit 69cd1834ed
1 file changed
+13 -31
+13 -31
View File
@@ -1,33 +1,15 @@
name: fbird CI
- name: Deploy Staging Preview
run:
echo "Updating staging environment..."
# Stop old staging instance if it exists
docker rm -f fbird-staging || true
# Defines when the workflow runs: on every push and pull request to the main branch
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
# Run continuous staging preview
docker run -d \
--name fbird-staging \
--restart always \
-v $(pwd):/usr/share/nginx/html:ro \
-p 8181:80 \
nginx:alpine
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# 1. Check out your repository code into the runner
- name: Checkout Code
uses: actions/checkout@v4
# 2. Verify that your core files exist and are structured correctly
- name: Verify Project Structure
run: |
echo "Checking repository files..."
ls -la
if [ ! -f "index.html" ]; then
echo "Error: index.html missing!"
exit 1
fi
echo "Project structure verified successfully."
# 3. Optional: HTML/Syntax validation check (using a lightweight linter or checker)
- name: Basic Asset Check
run: |
echo "Assets look good. Ready for deployment!"
echo "Staging deployed! Visit http://192.168.183.100:8181"