# This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation.
# This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation. # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name:Release-Distributebinaries on: # If we want to make release using github interface. # release: # types: [published] # If we want to make release by pushing new tag. workflow_dispatch: push: tags: -'[0-9]+.[0-9]+.[0-9]+' pull_request: branches: -master paths: -'Cargo.toml' -'Cargo.lock' -'.github/workflows/test.yml'
-name:Calculatetagname # if: contains(matrix.build, 'linux') shell:bash run:| name=dev if [[ ${GITHUB_REF} =~ refs/tags/[0-9]+.[0-9]+.[0-9]+ ]]; then name=${GITHUB_REF#refs/tags/} fi echo "TAG=$name" >> $GITHUB_ENV id:tagname
-name:Buildarchive shell:bash run:| set -ex rm -rf tmp mkdir tmp for dir in dist/bins-* ; do platform=${dir#"dist/bins-"} unset exe if [[ $platform =~ "win" ]]; then exe=".exe" fi pkgname=$PROJECT_NAME-$TAG-$platform mkdir tmp/$pkgname cp $dir/$BIN_NAME$exe dist/ || true mv $dir/$BIN_NAME$exe tmp/$pkgname chmod +x tmp/$pkgname/$BIN_NAME$exe if [[ $platform=~"linux" ]];then mv"$dir/legba_${TAG}_amd64.deb"dist/||true fi