Release #11
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
name: "Release" | |
on: | |
workflow_dispatch: | |
inputs: | |
target: | |
description: "The target for the release. This can be a commit sha or a branch." | |
required: false | |
default: "main" | |
jobs: | |
gem_release: | |
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main" | |
with: | |
target: "${{ github.event.inputs.target }}" | |
secrets: "inherit" | |
module_release: | |
needs: gem_release | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
with: | |
ref: "${{ github.ref }}" | |
clean: true | |
fetch-depth: 0 | |
- name: "PDK build" | |
uses: "docker://puppet/pdk:3.0.0.0" | |
with: | |
args: "build" | |
- name: "Publish module" | |
uses: "docker://puppet/pdk:3.0.0.0" | |
with: | |
args: 'release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force' |