Skip to content

Release

Release #60

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- main
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths
paths:
- 'installer/**'
env:
golang-version: "1.19"
jobs:
release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# https://github.com/PaulHatch/semantic-version
- id: semver
uses: paulhatch/semantic-version@v5.0.0-alpha
- uses: actions/setup-go@v2
if: ${{steps.semver.outputs.changed}}
with:
go-version: ${{ env.golang-version }}
- name: Build artifacts
if: ${{steps.semver.outputs.changed}}
run: VERSION=${{steps.semver.outputs.version_tag}} ./hack/build-obs-installer.sh
# https://github.com/softprops/action-gh-release
- uses: softprops/action-gh-release@v1
if: ${{steps.semver.outputs.changed}}
with:
tag_name: ${{steps.semver.outputs.version_tag}}
generate_release_notes: true
fail_on_unmatched_files: true
files: ./installer/*.tar.gz