This commit is contained in:
parent
f209927867
commit
dec62a9e70
2 changed files with 20 additions and 13 deletions
|
|
@ -1,26 +1,27 @@
|
||||||
name: Build and Release
|
name: Deploy HTML + release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches: [main]
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:act-22.04
|
||||||
|
volumes:
|
||||||
|
- /srv/devops/data/apache/htdocs:/output
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Ejecutar build
|
- name: Convertir y desplegar
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p release-dir
|
chmod +x convertir.sh
|
||||||
echo "# Documento convertido" > release-dir/documento.md
|
./convertir.sh
|
||||||
echo "" >> release-dir/documento.md
|
|
||||||
cat archivo.txt >> release-dir/documento.md
|
|
||||||
echo "Release $(date +%Y-%m-%d)" > release-dir/version.txt
|
|
||||||
echo "Build completado"
|
|
||||||
ls -lh release-dir/
|
|
||||||
|
|
||||||
- name: Crear release
|
- name: Crear release
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
6
archivo.md
Normal file
6
archivo.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
hola, que tal
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\- primer intento
|
||||||
|
|
||||||
Loading…
Reference in a new issue