Skip to content

Merge branch 'master' of github.com:ton31337/pdns-razor #14

Merge branch 'master' of github.com:ton31337/pdns-razor

Merge branch 'master' of github.com:ton31337/pdns-razor #14

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
compile-and-release:
name: Compile and release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Custom variables
id: vars
run: |
echo ::set-output name=version::$(awk -F : 'NR==2 { gsub(/ /, ""); print $2 }' shard.yml)
- name: Build image
run: ./docker/build.sh
- name: Push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
custom_tag: ${{ steps.vars.outputs.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
artifacts: ./docker/pkgs/razor-rockylinux8,./docker/pkgs/razor-debian11
generateReleaseNotes: true
makeLatest: true