Skip to content

Commit

Permalink
Add manual trigger and version input to action (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-lang authored Dec 13, 2024
1 parent 73ae0ca commit ed50d81
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
name: Package release

on: # yamllint disable-line rule:truthy
push:
tags:
- "**"
# push:
# tags:
# - "**"
workflow_dispatch:
inputs:
tag:
description: Tag to create
required: true
type: string

# Workflow jobs
jobs:
Expand All @@ -30,12 +36,14 @@ jobs:
./docker
outPath: docker.wbm.gz

# Manual release
# https://github.com/marketplace/actions/create-release
- name: "Upload release"
uses: ncipollo/release-action@v1
with:
artifacts: "docker.wbm.gz"
tag: ${{ github.ref_name }}
tag: ${{ inputs.tag }} #${{ github.ref_name }}
commit: main
prerelease: true
draft: true
generateReleaseNotes: true

0 comments on commit ed50d81

Please sign in to comment.