Skip to content

Commit

Permalink
Merge pull request #271 from willowtreeapps/gh-actions-trigger-update
Browse files Browse the repository at this point in the history
update git workflow and remove circle config
  • Loading branch information
andrewowen authored Feb 8, 2024
2 parents 44f6939 + d04386d commit 8b2c926
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 81 deletions.
81 changes: 0 additions & 81 deletions .circleci/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/mc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ name: Build & Release to Maven Central

on:
push:
branches:
- develop
tags:
- 'v*.*.*'
pull_request:
branches:
- develop

jobs:
build:
Expand All @@ -29,6 +34,11 @@ jobs:
- name: Lint Release
run: ./gradlew lintRelease

- name: Extract Branch Name
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/}}" >> $GITHUB_OUTPUT
id: extract_branch

# Check if the branch name matches the pattern "tags/v*.*.*" using regex
- name: Deploy To Maven Central
run: |
echo ${{ secrets.MAVEN_CENTRAL_SEC_RING }} | base64 -d > $HOME/secring.gpg
Expand All @@ -42,10 +52,12 @@ jobs:
-Porg.gradle.parallel=false \
-Porg.gradle.daemon=false \
--no-daemon
if: success() && steps.extract_branch.outputs.branch == 'tags/v*.*.*'

- name: Create Github Release
uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
if: success() && steps.extract_branch.outputs.branch == 'tags/v*.*.*'

0 comments on commit 8b2c926

Please sign in to comment.