Skip to content

Commit

Permalink
add manual release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
futabooo committed Apr 5, 2024
1 parent df7bb3f commit 38d0f71
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: release

on:
workflow_dispatch:
inputs:
tag:
description: "The tag name of the release"
required: true

jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions: {}
steps:
- name: Check ref
if: !startsWith(github.ref, 'refs/tags/')
run: |
echo "This action should only be run on tag"
exit 1
release:
needs: [check]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Release
uses: ./.github/actions/release
with:
tag: ${{ github.ref_name }}
11 changes: 11 additions & 0 deletions a
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
create release workflow
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch create-release-workflow
# Changes to be committed:
# new file: .github/actions/release/action.yaml
# new file: .github/workflows/tagpr.yaml
# new file: .tagpr
# modified: package.json
#

0 comments on commit 38d0f71

Please sign in to comment.