Skip to content

readme: explain slots #25

readme: explain slots

readme: explain slots #25

Workflow file for this run

name: release
on:
push:
branches:
- "**"
tags:
- "**"
jobs:
release:
name: create release
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: checkout code
uses: actions/checkout@v4
- name: set up go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: build
run: |
make paddler-bin-linux-x64
- name: determine tag type
id: tag_type
run: |
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+$ ]]; then
echo "tag_type=PRE_RELEASE_TAG" >> $GITHUB_OUTPUT
elif [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "tag_type=RELEASE_TAG" >> $GITHUB_OUTPUT
else
echo "tag_type=INVALID_TAG" >> $GITHUB_OUTPUT
fi
- name: create pre-release
id: create_prerelease
if: steps.tag_type.outputs.tag_type == 'PRE_RELEASE_TAG'
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: paddler-bin-linux-x64
generate_release_notes: true
prerelease: true
- name: create release
id: create_release
if: steps.tag_type.outputs.tag_type == 'RELEASE_TAG'
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
files: paddler-bin-linux-x64
generate_release_notes: true
prerelease: false