mirror of https://github.com/docker/compose.git
Merge pull request #1890 from lorenrh/il-222-release
Add dry run workflow to test release
This commit is contained in:
commit
66fa1657f5
|
@ -1,11 +1,17 @@
|
||||||
name: Releaser
|
name: Releaser
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
tags:
|
inputs:
|
||||||
- "v1*"
|
tag:
|
||||||
|
description: 'Release Tag'
|
||||||
|
required: true
|
||||||
|
dry-run:
|
||||||
|
description: 'Dry run'
|
||||||
|
required: false
|
||||||
|
default: 'true'
|
||||||
jobs:
|
jobs:
|
||||||
upload-release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.16
|
- name: Set up Go 1.16
|
||||||
|
@ -36,7 +42,9 @@ jobs:
|
||||||
run: cp packaging/* bin/
|
run: cp packaging/* bin/
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
|
if: ${{ github.event.inputs.dry-run != 'true' }}
|
||||||
with:
|
with:
|
||||||
artifacts: "bin/*"
|
artifacts: "bin/*"
|
||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
tag: ${{ github.event.inputs.tag }}
|
||||||
|
|
Loading…
Reference in New Issue