From fac1a15db96d7cdde325be172ccca80d4ac5195c Mon Sep 17 00:00:00 2001 From: Eric Wittmann Date: Mon, 17 Jun 2024 12:02:21 -0400 Subject: [PATCH] remove old sdk workflow --- .github/workflows/release-gosdk.yaml | 77 ---------------------------- 1 file changed, 77 deletions(-) delete mode 100644 .github/workflows/release-gosdk.yaml diff --git a/.github/workflows/release-gosdk.yaml b/.github/workflows/release-gosdk.yaml deleted file mode 100644 index 478ce54d70..0000000000 --- a/.github/workflows/release-gosdk.yaml +++ /dev/null @@ -1,77 +0,0 @@ -name: Release Go SDK -on: - workflow_dispatch: - inputs: - tag: - description: 'Release tag name' - required: true - release: - types: [released, prereleased] - - -env: - # The values are extracted from the github.event context, - # which is only available when the workflow gets triggered by a release event. - RELEASE_VERSION: ${{ github.event.release.name }} - BRANCH: ${{ github.event.release.target_commitish }} - - -jobs: - release-sdk: - if: github.repository_owner == 'Apicurio' - runs-on: ubuntu-20.04 - timeout-minutes: 15 - env: - RELEASE_TYPE: release - steps: - - name: Fetch Release Details - if: github.event_name == 'workflow_dispatch' - run: | - touch release.json && curl https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${{ github.event.inputs.tag }} > release.json - echo "RELEASE_VERSION=$(cat release.json | jq -r '.name')" >> $GITHUB_ENV - echo "BRANCH=$(cat release.json | jq -r '.target_commitish')" >> $GITHUB_ENV - - - name: Download Source Code - run: | - git config --global user.name "apicurio-ci" - git config --global user.email "apicurio.ci@gmail.com" - git clone --branch $RELEASE_VERSION --single-branch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git registry - cd registry - git remote add origin "https://apicurio-ci:${{ secrets.ACCESS_TOKEN }}@github.com/Apicurio/apicurio-registry.git" - - # We have faced issues in the past where a github release was created from a wrong commit - # This step will ensure that the release was created from the right commit - - name: Verify Project Version - run: | - cd registry - PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - if [[ $PROJECT_VERSION != $RELEASE_VERSION ]] - then - echo "ERROR: Project Version '${PROJECT_VERSION}' does not match with Released Version '${RELEASE_VERSION}'" - exit 1 - fi - - - name: Go - Setup Go - uses: actions/setup-go@v5 - with: - go-version: '1.20' - - # Needs special tagging to use submodules: https://stackoverflow.com/a/64705638/7898052 - - name: Release Go SDK - run: | - cd registry - git tag "v$RELEASE_VERSION" - git tag "go-sdk/v$RELEASE_VERSION" - git push origin "v$RELEASE_VERSION" - git push origin "go-sdk/v$RELEASE_VERSION" - GOPROXY=proxy.golang.org go list -m "github.com/apicurio/apicurio-registry@v$RELEASE_VERSION" - if: github.event.inputs.skip-go-sdk == 'false' - - - - name: Google Chat Notification - if: ${{ failure() }} - uses: Co-qn/google-chat-notification@b9227d9daa4638c9782a5bd16c4abb86268127a1 - with: - name: ${{ github.job }} - url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} - status: ${{ job.status }}