Compare commits

...

10 commits

Author SHA1 Message Date
Álvaro González
d53a0ba76e Merge branch 'test-actions'
Some checks failed
Test checkout / test_checkout_no_actions (push) Failing after 5s
Create release from tag / create_release (push) Failing after 14m34s
2026-05-13 10:25:51 +02:00
Álvaro González
63d9230dea absolute paths 4 2026-05-13 10:23:21 +02:00
Álvaro González
f8c2778726 absolute paths 2 2026-05-13 09:52:02 +02:00
Álvaro González
4d77a6a923 test checkout 2026-05-13 09:47:48 +02:00
Álvaro González
8638e98989 disabled gui tests 2026-05-12 20:15:04 +02:00
Álvaro González
4007bcc2b7 error en get_release files 2026-05-12 20:00:45 +02:00
Álvaro González
8516cdecbe find de build 2026-05-12 19:49:38 +02:00
Álvaro González
f11f2505e8 find de build 2026-05-12 19:48:32 +02:00
Álvaro González
eec16237eb test 2026-05-12 19:15:32 +02:00
Álvaro González
5583dbcb4f zip errors 2026-05-12 19:02:05 +02:00
4 changed files with 31 additions and 5 deletions

21
.github/workflows/checkout.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Test checkout
on:
push:
tags:
- 'test*'
jobs:
test_checkout_no_actions:
runs-on: ubuntu-latest
permissions:
contents: write # needed to create releases
steps:
- name: Environment Variables
run: pwd; env
- name: Checkout
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh repo clone $GITHUB_REPOSITORY . -- --depth 1
- name: List files
run: find $(pwd)

View file

@ -2,8 +2,7 @@ name: run-test-on-push
on: on:
push: push:
branches: branches:
- master - test
# - feature/embed-http-server
jobs: jobs:
run-script: run-script:

View file

@ -1,18 +1,24 @@
#|/bin/bash #!/bin/bash -x
echo "Ejecutando $0 en directorio $(pwd)" echo "Ejecutando $0 en directorio $(pwd)"
build_release_files(){ build_release_files(){
make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container
echo " ----> Listando archivos en ./build"
find build/
echo " <----"
pushd build/web && zip -r ../../webapp.zip * && popd
pushd build/linux/x64/release/bundle && zip -r ../../../../../linux-bin.zip * && popd
} }
get_release_files(){ get_release_files(){
cd build/web && zip -r ../webapp.zip
zip --recurse-paths linux-bin.zip build/linux/x64/release/bundle/*
echo ./build/app/outputs/flutter-apk/app-release.apk linux-bin.zip webapp.zip echo ./build/app/outputs/flutter-apk/app-release.apk linux-bin.zip webapp.zip
} }
main(){ main(){
TAG=${GITHUB_REF#refs/tags/} TAG=${GITHUB_REF#refs/tags/}
VERSION=${TAG#version-}
build_release_files build_release_files
FILES="$(get_release_files)" FILES="$(get_release_files)"
gh release create $TAG $FILES gh release create $TAG $FILES