Compare commits

..

2 commits

Author SHA1 Message Date
Kristina
ea664b0c70 prueba 2
Some checks failed
Deploy HTML / deploy (push) Failing after 19s
2026-05-16 18:32:25 +02:00
Kristina
5e024cac92 prueba 1 2026-05-16 18:12:07 +02:00
3 changed files with 37 additions and 0 deletions

19
.gitea/workflows/ci.yaml Normal file
View file

@ -0,0 +1,19 @@
name: Deploy HTML
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
volumes:
- /srv/devops/data/apache/htdocs:/output
steps:
- uses: actions/checkout@v3
- name: Convertir y desplegar
run: |
chmod +x convertir.sh
./convertir.sh

12
convertir.sh Normal file
View file

@ -0,0 +1,12 @@
-#!/bin/sh
+#!/bin/bash
+set -euo pipefail
- for MD in $(ls *.md)
+ for md in *.md; do
+ [ -f "$md" ] || continue
- echo "USAR scp O ftp O CUALQUIER OTRA COSA PARA SUBIR LOS HTML: $HTML"
- cat $HTML
+ cp "$html" /output/
+ echo "https://portaljack.freeddns.org/${html}"

6
prueba.md Normal file
View file

@ -0,0 +1,6 @@
Hola.
\- Primer intento