Skip to content

Commit

Permalink
allow manually release
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Jan 10, 2025
1 parent 104bc0a commit 96b8cbd
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release-manually.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

name: Release (Manually)

on:
workflow_dispatch:
inputs:
ref:
description: 'The git ref to release'
required: true
default: 'master'
version:
description: 'The version to release'
required: true
default: 'v0.0.0'

permissions:
contents: write

jobs:
terraform-provider-release:
uses: hashicorp/ghaction-terraform-provider-release/.github/workflows/community.yml@v2
secrets:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-private-key-passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
with:
setup-go-version-file: 'go.mod'
git-ref: ${{ github.event.inputs.ref }}
product-version: ${{ github.event.inputs.version }}
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ jobs:
with:
setup-go-version-file: 'go.mod'
git-ref: ${{ github.ref }}
product-version: '${{ github.ref_name }}'

0 comments on commit 96b8cbd

Please sign in to comment.