Skip to content

Commit

Permalink
chore: Add gitlab release script (#14)
Browse files Browse the repository at this point in the history
* Add latest post-release-merge script

* Add gitlab release script
  • Loading branch information
NQuinn27 authored Nov 24, 2023
1 parent c231cf3 commit 1ffbe35
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/post-release-merge.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 }}
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1ffbe35

Please sign in to comment.