Skip to content

Commit

Permalink
direct release
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Mar 3, 2025
1 parent 984cba5 commit d46d8de
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/actions/tag/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Bump version and create release"
description: "Bumps version, creates a tag, and publishes a release."

inputs:
github_token:
description: "GitHub token for authentication"
required: true

outputs:
tag:
description: 'A new tag'
value: ${{ steps.tag_version.outputs.new_tag }}

runs:
using: "composite"
steps:
# -----------------------------------------------------------------------------
# Step 1: Checkout the repository
# -----------------------------------------------------------------------------
- name: Checkout [${{ github.repository }}]
uses: actions/checkout@v4

# -----------------------------------------------------------------------------
# Step 2: Bump version and tag
# -----------------------------------------------------------------------------
- name: Bump version and tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ inputs.github_token }}

# -----------------------------------------------------------------------------
# Step 3: Create GitHub release
# -----------------------------------------------------------------------------
- name: Create GitHub release without artifacts
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
generate_release_notes: true

- name: Debug Output Tag
shell: bash
run: |
echo "DEBUG: ${{ steps.tag_version.outputs.new_tag }}"
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Tag
uses: cvxgrp/.github/actions/tag@v2.2.5
uses: ./.github/actions/tag
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
build_package: 'false'

0 comments on commit d46d8de

Please sign in to comment.