mirror of
https://github.com/zhom/banderole.git
synced 2026-08-12 20:50:23 +02:00
build: run release workflow only on tags with semantic version
This commit is contained in:
@@ -2,14 +2,8 @@ name: Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*'
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@@ -93,7 +87,7 @@ jobs:
|
|||||||
New-Item -ItemType Directory -Force -Path artifacts | Out-Null
|
New-Item -ItemType Directory -Force -Path artifacts | Out-Null
|
||||||
$Archive = "artifacts/banderole-${{ matrix.target }}.zip"
|
$Archive = "artifacts/banderole-${{ matrix.target }}.zip"
|
||||||
Compress-Archive -Path "$TargetDir/$BinName" -DestinationPath $Archive -Force
|
Compress-Archive -Path "$TargetDir/$BinName" -DestinationPath $Archive -Force
|
||||||
if (Test-Path 'LICENSE' -and Test-Path 'README.md') {
|
if ((Test-Path 'LICENSE') -and (Test-Path 'README.md')) {
|
||||||
$DocsArchive = "artifacts/banderole-${{ matrix.target }}-with-docs.zip"
|
$DocsArchive = "artifacts/banderole-${{ matrix.target }}-with-docs.zip"
|
||||||
Compress-Archive -Path "$TargetDir/$BinName","LICENSE","README.md" -DestinationPath $DocsArchive -Force
|
Compress-Archive -Path "$TargetDir/$BinName","LICENSE","README.md" -DestinationPath $DocsArchive -Force
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user