Compare commits
No commits in common. "d53a0ba76e2275a56289faef4515d514059490bb" and "d3b8476144394a94d1b9b80d3c3cdd80fd522532" have entirely different histories.
d53a0ba76e
...
d3b8476144
4 changed files with 5 additions and 31 deletions
21
.github/workflows/checkout.yml
vendored
21
.github/workflows/checkout.yml
vendored
|
|
@ -1,21 +0,0 @@
|
||||||
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)
|
|
||||||
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -2,7 +2,8 @@ name: run-test-on-push
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- test
|
- master
|
||||||
|
# - feature/embed-http-server
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-script:
|
run-script:
|
||||||
|
|
|
||||||
12
release.sh
12
release.sh
|
|
@ -1,24 +1,18 @@
|
||||||
#!/bin/bash -x
|
#|/bin/bash
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue