Skip to content

Commit

Permalink
feat: enhance release workflow to support version bumps and new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lekman committed Nov 30, 2024
1 parent 66c29eb commit 22d0fb7
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/cd_release_please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,27 @@ name: "Release Please"
on:
workflow_dispatch:
push:
# Run on main branch changes and let release-please create
# PRs for version bumps and new releases
branches:
- main
paths:
- "**/*.cs"
- "**/*.cs*"
- ".release-please-manifest.json"
- "release-please-config.json"
pull_request:
# Only run during a PR if the release-please manifest has changed,
# meaning that versions are attempting to be updated.
types: [opened, synchronize, reopened]
paths:
- ".release-please-manifest.json"

jobs:
release:
release-please:
name: Release Please
# Only run on main, after merge is completed
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -30,6 +40,21 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

bump-versions:
name: Bump Versions
# Only run on pull requests or on feature branches
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bumpy bump
uses: lekman/release-please-dotnet@feature/prereq
with:
manifest: ".release-please-manifest.json"

# - name: Setup .NET
# uses: actions/setup-dotnet@v4
# with:
Expand Down

0 comments on commit 22d0fb7

Please sign in to comment.