This commit is contained in:
parent
ece9460b43
commit
af968950bd
1 changed files with 6 additions and 24 deletions
|
|
@ -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
|
|
||||||
}"
|
|
||||||
Loading…
Reference in a new issue