generated from tschm/paper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters