diff --git a/.github/workflows/build_batch_release.yml b/.github/workflows/build_batch_release.yml deleted file mode 100644 index 9e8ed0776..000000000 --- a/.github/workflows/build_batch_release.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Build Batch Release - -on: - push: - branches: - - release/** -jobs: - build: - name: Build gems - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.4 - - name: Build gem source - run: ruby .scripts/batch_build.rb - - name: Archive Artifacts - uses: actions/upload-artifact@v4 - with: - name: ${{ github.sha }} - path: sentry*/*.gem diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index ac02f9a3e..6b837e18f 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -3,31 +3,21 @@ name: Build Release on: push: branches: - - release-*/** + - release/** jobs: build: - name: Build + name: Build gems runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.4 - - name: Capture sdk name - uses: actions-ecosystem/action-regex-match@v2 - id: regex-match - with: - text: ${{ github.ref }} - regex: 'refs\/heads\/release-(sentry-\w+)\/.*' - - name: Set sdk-directory path - run: echo ${{format('sdk-directory={0}', steps.regex-match.outputs.group1)}} >> $GITHUB_ENV - name: Build gem source - working-directory: ${{env.sdk-directory}} - run: make build + run: ruby .scripts/batch_build.rb - name: Archive Artifacts uses: actions/upload-artifact@v4 with: name: ${{ github.sha }} - path: ${{env.sdk-directory}}/*.gem + path: sentry*/*.gem diff --git a/.github/workflows/prepare_batch_release.yml b/.github/workflows/release.yml similarity index 97% rename from .github/workflows/prepare_batch_release.yml rename to .github/workflows/release.yml index 84c688a3f..36f84f734 100644 --- a/.github/workflows/prepare_batch_release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Prepare Batch Release +name: Release on: workflow_dispatch: inputs: