Skip to content

Build release on creation #9

Build release on creation

Build release on creation #9

---
name: Perform a release
on: # yamllint disable-line rule:truthy
push:
branches: [main]
workflow_dispatch:
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- id: version
name: Get version string
run: echo "VERSION=v$(date +'%Y.%m.%d').${{ github.run_number }}" >> $GITHUB_OUTPUT
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.VERSION }}
release_name: Release ${{ steps.version.outputs.VERSION }}
generateReleaseNotes: true