diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 474af3e..564dfe6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Kubo plugin build, test, release +name: Kubo plugin on: push: @@ -9,6 +9,7 @@ env: jobs: build-artifacts: + name: "Build" strategy: matrix: os: @@ -43,6 +44,7 @@ jobs: path: nopfs-kubo-plugin_*.tar.gz test-artifacts: + name: "Test" needs: build-artifacts strategy: matrix: @@ -64,11 +66,13 @@ jobs: run: | V=`cat nopfs-kubo-plugin/go.mod | grep github.com/ipfs/kubo | grep -o 'v.*'` echo "KUBO_VERSION=$V" >> "$GITHUB_ENV" + RELEASE=$(basename ${{ github.ref_name }}) + echo "RELEASE=$RELEASE" >> "$GITHUB_ENV" - name: Download artifact id: download uses: actions/download-artifact@v3 with: - name: nopfs-kubo-plugin_*_${{ env.GOHOSTOS }}_amd64.tar.gz + name: nopfs-kubo-plugin_${{ env.RELEASE }}_${{ env.GOHOSTOS }}_amd64.tar.gz - name: Download unpack Kubo run: | wget https://dist.ipfs.tech/kubo/${{ env.KUBO_VERSION }}/kubo_${{ env.KUBO_VERSION }}_${{ env.GOHOSTOS }}-amd64.tar.gz @@ -85,6 +89,7 @@ jobs: run: ipfs version --all release: + name: "Release" needs: test-artifacts runs-on: ubuntu-latest steps: