name: Deploy HTML + release
on:
push:
branches: [main]
jobs:
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@v3
- name: Convertir y desplegar
shell: bash
run: |
chmod +x convertir.sh
./convertir.sh
- name: Crear release
env:
TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
TAG="${GITHUB_REF_NAME}"
JSON_PAYLOAD=$(cat <