diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3163f6..9c294aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,19 +59,14 @@ jobs: run: | ls cargo build --release - - name: Fetch tags - run: git fetch --tags - - - name: List tags - run: git tag - name: Get latest tag id: get_tag run: echo "::set-output name=tag::$(git describe --tags --abbrev=0 | sed 's/v//')" - + - name: Replace version in control file run: sed -i "s/@VERSION@/${{ steps.get_tag.outputs.tag }}/g" pkg/deb/control - + - name: Package for deb run: | mkdir -p pkg/deb/aerospike-php-client-deb @@ -92,6 +87,7 @@ jobs: cp pkg/deb/aerospike-php-client-deb.deb pkg/deb/aerospike-php-client-1.0.2-aarch64.deb ls pkg/deb/ rm -rf pkg/deb/aerospike-php-client-deb* + - name: Move DEB x86_64 to artifacts uses: actions/upload-artifact@v2 with: @@ -106,3 +102,4 @@ jobs: +