Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
feat: allow manual release
Browse files Browse the repository at this point in the history
  • Loading branch information
hussedev committed Jan 14, 2025
1 parent 020ed54 commit b17c0d4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
description: "Version to tag (e.g., 3.0.3)"
required: true
type: string

permissions:
contents: read
Expand All @@ -23,6 +29,14 @@ jobs:
with:
fetch-depth: 0

- name: Setup Git
if: github.event_name == 'workflow_dispatch'
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git tag -a v${{ inputs.version }} -m "v${{ inputs.version }}"
git push origin v${{ inputs.version }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down

0 comments on commit b17c0d4

Please sign in to comment.