diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index be935e25..20be265b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -243,6 +243,15 @@ jobs: CLUSTER_USER: ${{ secrets.CLUSTER_USER }} CLUSTER_PASSWORD: ${{ secrets.CLUSTER_PASSWORD }} timeout-minutes: 60 + - name: Attach the CAR to release if building a release tag + if: github.event_name == 'release' && github.event.action == 'published' + run: | + curl \ + -XPOST \ + -H "Authorization: Bearer ${{ secrets.UCI_GITHUB_TOKEN }}" \ + -H "Content-Type: application/octet-stream" \ + --data-binary "@dist_${{ github.sha }}.car" \ + "https://api.github.com/repos/${{ github.repository }}/releases/${{ steps.get_release.outputs.release_id }}/assets?name=dist_${{ github.event.release.tag_name }}_${{ github.sha }}.car" - name: Update DNSLink at inbrowser.dev (Staging for Dev Testing) if main branch was updated if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && github.ref == 'refs/heads/main' run: |