probando
Some checks failed
Test workflow / test (push) Has been cancelled

This commit is contained in:
Kristina 2026-05-16 13:32:47 +02:00
parent ece9460b43
commit af968950bd

View file

@ -1,34 +1,16 @@
name: Release desde cmds name: Test workflow
on: on:
push: push:
tags: branches:
- 'v*' - main
jobs: jobs:
build-and-release: test:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Build - name: Hello
run: | run: echo "Workflow funcionando"
mkdir -p dist
echo "artefacto" > dist/app.txt
- name: Create release
env:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
curl -X POST \
-H "Authorization: token $FORGEJO_TOKEN" \
-H "Content-Type: application/json" \
"${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases" \
-d "{
\"tag_name\": \"${GITHUB_REF_NAME}\",
\"name\": \"${GITHUB_REF_NAME}\",
\"body\": \"Release automático\",
\"draft\": false,
\"prerelease\": false
}"