Skip to content

ci: All CI runners are now on-demand (#8438) #1

ci: All CI runners are now on-demand (#8438)

ci: All CI runners are now on-demand (#8438) #1

name: "Publish Go SDK"
on:
push:
branches: ["main"]
tags: ["sdk/go/v**"]
jobs:
publish:
if: github.repository == 'dagger/dagger'
runs-on: "${{ github.repository == 'dagger/dagger' && 'dagger-g2-v0-13-5-4c' || 'ubuntu-latest' }}"
steps:
- uses: actions/checkout@v4
- name: "go publish"
uses: ./.github/actions/call
env:
RELEASE_DAGGER_CI_TOKEN: ${{ secrets.RELEASE_DAGGER_CI_TOKEN }}
with:
function: sdk go publish --tag="${{ github.ref_name }}" --github-token=env:RELEASE_DAGGER_CI_TOKEN
- name: "notify"
if: github.ref_name != 'main'
uses: ./.github/actions/notify
with:
message: "🐹 Go SDK: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"
discord-webhook: ${{ secrets.NEW_RELEASE_DISCORD_WEBHOOK }}