mirror of
https://github.com/matifali/update-coder-template.git
synced 2024-11-10 08:55:47 +08:00
Delete .github/workflows/release.yaml
We are moving to manual releases.
This commit is contained in:
parent
2909d6cadc
commit
c468103ff6
1 changed files with 0 additions and 38 deletions
38
.github/workflows/release.yaml
vendored
38
.github/workflows/release.yaml
vendored
|
@ -1,38 +0,0 @@
|
|||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# check if tag name has alpha or beta
|
||||
- name: Check if tag name has alpha or beta
|
||||
id: check_tag_name
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [[ "${{ github.ref }}" =~ -(alpha|beta)- ]]; then
|
||||
echo "PRE_RELEASE=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "PRE_RELEASE=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
# Create a pre release if tag name has alpha or beta
|
||||
- name: Create pre release
|
||||
if: steps.check_tag_name.outputs.PRE_RELEASE == 'true'
|
||||
run: gh release create ${{ github.ref }} -t ${{ github.ref_name }} --prerelease --generate-notes -R ${{ github.repository }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Create release
|
||||
- name: Create release
|
||||
if: steps.check_tag_name.outputs.PRE_RELEASE == 'false'
|
||||
run: gh release create ${{ github.ref }} -t ${{ github.ref_name }} --generate-notes -R ${{ github.repository }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue