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: Obtener Ășltima tag
run: |
TAG=$(git describe --tags --abbrev=0)
echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Crear release
env:
TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
TAG="${env.TAG}"
JSON_PAYLOAD=$(cat <