diff --git a/.github/workflows/post-release-merge.yml b/.github/workflows/post-release-merge.yml index 29b58a5..7dc311a 100644 --- a/.github/workflows/post-release-merge.yml +++ b/.github/workflows/post-release-merge.yml @@ -1,15 +1,12 @@ -name: Post PR Merge +name: Post Release PR Merge on: pull_request: - # Patterns matched against refs/heads - branches: - - release/next types: [ closed ] jobs: release_merge: - if: github.event.pull_request.merged == true + if: github.head_ref == 'release/next' && github.event.pull_request.merged == true runs-on: ubuntu-latest steps: - name: Git - Checkout @@ -26,9 +23,4 @@ jobs: run: | git tag $RELEASE_VERSION git push origin $RELEASE_VERSION - - name: Create a Release - uses: elgohr/Github-Release-Action@v4 - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_ACCESS_TOKEN }} - with: - title: Release ${{ env.RELEASE_VERSION }} + diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4d326b3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +variables: + RUBY_VERSION: 3.2.2 + +workflow: + rules: + - if: $CI_COMMIT_TAG + +build-and-release: + stage: build + image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/ruby:$RUBY_VERSION + script: + - bundle install + - pod lib lint --allow-warnings --allow-root + - pod trunk push --allow-root + when: manual + environment: production