From d890ac12542a9e6a09f8013817e5cc11ee8843a5 Mon Sep 17 00:00:00 2001 From: "Dmitry K." Date: Thu, 9 May 2024 14:32:18 -0700 Subject: [PATCH] switch to tags --- .github/workflows/release-artifacts.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index dfd0acd09..a757be757 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -1,10 +1,9 @@ name: Release artifacts -# Currently disabled, but ready to implement a CI job to add binaries to GitHub releases. on: push: - branches: ["dk-release-artifacts"] - # pull_request: + tags: + - "v*.*.*" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} @@ -80,17 +79,9 @@ jobs: cache-to: type=gha,mode=max context: . - # TODO(@okdas): when we have proper releases, we can remove this and use binaries built by releases instead. - # But for now, attach them to commits so we/community can access them - - name: Add binaries to commit - uses: actions/upload-artifact@v4 - with: - name: poktrolld - path: release/ - # TODO(@okdas): use for releases (also change the "on" part at the top so it only tgirrered for tags/releases) - # - name: Add release and publish binaries - # uses: softprops/action-gh-release@v1 - # with: - # files: | - # release/* + - name: Add release and publish binaries + uses: softprops/action-gh-release@v1 + with: + files: | + release/*