Skip to content

Commit

Permalink
cicd: manual deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
teckmk committed Aug 8, 2024
1 parent 9c5842f commit e0799b6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
- 'v*.*.*'

pull_request:
workflow_call:


env:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/manual_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Create Tag

on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name (v*.*.*)'
required: true
type: string
tag_message:
description: 'Message for the tag'
required: true
type: string

jobs:
create_tag:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Git user
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- name: Create and push tag
run: |
git tag -a "${{ github.event.inputs.tag_name }}" -m "${{ github.event.inputs.tag_message }}"
git push origin "${{ github.event.inputs.tag_name }}"

0 comments on commit e0799b6

Please sign in to comment.