Skip to content

v0.3.4

v0.3.4 #10

Workflow file for this run

name: release
on:
release:
types:
- published
jobs:
set_version:
runs-on: self-hosted
steps:
- name: Set Versions
uses: actions/github-script@v6
id: set_version
with:
script: |
const tag = context.ref.substring(10)
const no_v = tag.replace('v', '')
const dash_index = no_v.lastIndexOf('-')
const no_dash = (dash_index > -1) ? no_v.substring(0, dash_index) : no_v
core.setOutput('tag', tag)
core.setOutput('no-v', no_v)
core.setOutput('no-dash', no_dash)
outputs:
version: ${{ steps.set_version.outputs.no-v }}
build_deb:
needs: set_version
uses: ./.github/workflows/build-deb.yml
with:
version: ${{ needs.set_version.outputs.version }}
publish_github:
needs: [ set_version, build_deb ]
uses: ./.github/workflows/publish-to-github-releases.yml
with:
version: ${{ needs.set_version.outputs.version }}