Skip to content

Commit

Permalink
Release trigger on published releases
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Dec 11, 2023
1 parent 323c169 commit 4964aff
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
name: release

on:
workflow_dispatch:
inputs:
tag:
description: Tag to be released
required: true
prerelease:
description: Define the release as pre-release
required: false
default: false
type: boolean
release:
types: [published]

jobs:
docker:
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
with:
name: runner-manager
namespace: scality
tag: ${{ inputs.tag }}

release:
runs-on: ubuntu-latest
needs: docker
steps:
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target_commitish: ${{ github.sha }}
tag_name: ${{ inputs.tag }}
name: Release ${{ inputs.tag }}
prerelease: ${{ inputs.prerelease }}
generate_release_notes: true
tag: ${{ github.ref_name }}

0 comments on commit 4964aff

Please sign in to comment.