diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 5c27265..f4e42af 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -22,11 +22,14 @@ jobs: run: poetry install - name: build the sucker run: make build + # https://stackoverflow.com/a/64195658 + - name: Add SHORT_SHA env property with commit short sha + run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV - uses: ncipollo/release-action@v1 with: artifacts: "utils" body: "It's releasin' time" generateReleaseNotes: true - tag: ${{ github.sha }} + tag: ${SHORT_SHA} commit: master token: ${{ secrets.PAT }}