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:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-22.04
|
||||
volumes:
|
||||
- /srv/devops/data/apache/htdocs:/output
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Ejecutar build
|
||||
- name: Convertir y desplegar
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p release-dir
|
||||
echo "# Documento convertido" > release-dir/documento.md
|
||||
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/
|
||||
chmod +x convertir.sh
|
||||
./convertir.sh
|
||||
|
||||
|
||||
- name: Crear release
|
||||
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