Change workflows

This commit is contained in:
problematicconsumer
2024-01-13 14:48:56 +03:30
parent 251fa42fac
commit d5d26dd311
4 changed files with 86 additions and 101 deletions

15
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+[-.](dev|beta)'
jobs:
build:
uses: ./.github/workflows/build.yml
secrets: inherit
with:
upload-artifact: true
tag-name: "${{ github.ref_name }}"
channel: "${{ github.ref_type == 'tag' && endsWith(github.ref_name, 'dev') && 'dev' || github.ref_type != 'tag' && 'dev' || 'prod' }}"