Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CI and Release workflows, cleanup Azure pipelines, remove obsolete files, update docs. #1768

Merged
merged 10 commits into from
Sep 30, 2024
Merged
5 changes: 4 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: 'v$RESOLVED_VERSION 🌈'
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
Expand All @@ -14,6 +14,9 @@ categories:
labels:
- 'chore'
- 'dependency'
- 'dependencies'
exclude-labels:
- 'skip-changelog'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: CI
on:
pull_request:
branches: ["master"]
push:
branches: ["master"]
branches: ["*"]
tags: ["v*"]

permissions:
Expand Down Expand Up @@ -43,8 +41,8 @@ jobs:
contents: write
pull-requests: write
name: Publish to Sonatype
# Publish to Sonatype only on tags starting with 'v'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
# Publish to Sonatype only on tags starting with 'v' (stable releases) and not from forked repositories
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && ! github.event.repository.fork }}
needs: [ci]
runs-on: ubuntu-latest
steps:
Expand All @@ -70,6 +68,8 @@ jobs:
contents: write
pull-requests: write
name: Publish to Azure
# Publish to Azure only for non-tag references (e.g., all the pushes to default and other branches) and not from forked repositories
if: ${{ ! startsWith(github.ref, 'refs/tags/') && ! github.event.repository.fork }}
needs: [ci]
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -97,6 +97,8 @@ jobs:
# do not run on pull requests
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Loading