From 22594f41dfefb0f7245443e4eea74ea991186349 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Sat, 11 Feb 2023 13:31:44 +1000 Subject: [PATCH] update Relase CI --- .github/workflows/create_tag.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml index 272f51a..3305aec 100644 --- a/.github/workflows/create_tag.yml +++ b/.github/workflows/create_tag.yml @@ -51,11 +51,22 @@ jobs: echo "NEW_VERSION=v$MAJOR.$MINOR.$PATCH" >> $GITHUB_OUTPUT - name: Create release - uses: actions/create-release@v1 - id: create_release + uses: ncipollo/release-action@v1.12.0 with: - release_name: Meshtastic Protobufs ${{ steps.version.outputs.NEW_VERSION }} - tag_name: ${{ steps.version.outputs.NEW_VERSION }} - body: Protobufs for version ${{ steps.version.outputs.NEW_VERSION }} release of Meshtastic firmware - env: - GITHUB_TOKEN: ${{ github.token }} + name: Meshtastic Protobufs ${{ steps.version.outputs.NEW_VERSION }} + tag: ${{ steps.version.outputs.NEW_VERSION }} + generateReleaseNotes: true + token: ${{ github.token }} + + - name: Setup Buf + uses: bufbuild/buf-setup-action@v1 + with: + github_token: ${{ github.token }} + + - name: Push to schema registry + # uses: bufbuild/buf-push-action@v1 + # with: + # buf_token: ${{ secrets.BUF_TOKEN }} + run: | + export BUF_TOKEN=${{ secrets.BUF_TOKEN }} + buf push --tag ${{ github.ref_name }}