diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 601b9c5..6732975 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -22,4 +22,14 @@ jobs: brew upgrade - name: build run: ./mac/ci-build.sh + - uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.gettag.outputs.tag }} + artifacts: "*.tar.xz" + allowUpdates: true + draft: false + makeLatest: true + omitBody: true + omitPrereleaseDuringUpdate: true + replacesArtifacts: true diff --git a/mac/ci-build.sh b/mac/ci-build.sh index 5b8a2f8..d306392 100755 --- a/mac/ci-build.sh +++ b/mac/ci-build.sh @@ -1,9 +1,7 @@ #!/bin/bash -#export LIBCURL_LIBS="-L$(brew --prefix curl)/lib" -#export LIBCURL_CFLAGS="-I$(brew --prefix curl)/include" - export PKG_CONFIG_PATH="$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" + PROJECT_NAME=$(grep AC_INIT configure.ac | cut -d[ -f2 | cut -d] -f1) VERSION=$(grep AC_INIT configure.ac | cut -d[ -f3 | cut -d] -f1) @@ -20,5 +18,6 @@ if [ "$?" != "0" ]; then exit -1 fi -echo "Build complete" +make DESTDIR=.bin/package install +tar --create --xz --file=macos-${PROJECT_NAME}.tar.xz --directory=.bin/package --verbose . -- libgit2 0.21.2