Compare commits
2 commits
2ae642e467
...
ea664b0c70
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea664b0c70 | ||
|
|
5e024cac92 |
3 changed files with 37 additions and 0 deletions
19
.gitea/workflows/ci.yaml
Normal file
19
.gitea/workflows/ci.yaml
Normal 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
12
convertir.sh
Normal 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
6
prueba.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
Hola.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\- Primer intento
|
||||||
|
|
||||||
Loading…
Reference in a new issue