Update release workflow #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+' | |
jobs: | |
build-debian-package-jammy: | |
name: build (Ubuntu 22.04) | |
runs-on: ubuntu-latest | |
container: | |
image: yanetplatform/builder-lite | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- run: | | |
export YANET_VERSION=${{github.ref_name}} | |
export YANET_VERSION=${YANET_VERSION#v} | |
export YANET_VERSION_MAJOR=${YANET_VERSION%.*} | |
export YANET_VERSION_MINOR=${YANET_VERSION#*.} | |
export YANET_VERSION_REVISION=${{github.run_number}} | |
export YANET_VERSION_HASH=${{github.sha}} | |
export YANET_VERSION_CUSTOM=stable | |
dpkg-buildpackage -b | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: target_debian22.04 | |
path: /__w/yanet/yanet*.deb | |
build-debian-package-bionic: | |
name: build (Ubuntu 18.04) | |
runs-on: ubuntu-latest | |
container: | |
image: yanetplatform/builder_ubuntu18.04-lite | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: recursive | |
- run: | | |
export YANET_VERSION=${{github.ref_name}} | |
export YANET_VERSION=${YANET_VERSION#v} | |
export YANET_VERSION_MAJOR=${YANET_VERSION%.*} | |
export YANET_VERSION_MINOR=${YANET_VERSION#*.} | |
export YANET_VERSION_REVISION=${{github.run_number}} | |
export YANET_VERSION_HASH=${{github.sha}} | |
export YANET_VERSION_CUSTOM=stable | |
dpkg-buildpackge -b | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: target_debian18.04 | |
path: /__w/yanet/yanet*.deb |