add version script to tagged releases

This commit is contained in:
vabene1111
2020-06-10 11:34:05 +02:00
parent 608e024caa
commit e60441ec99
2 changed files with 22 additions and 3 deletions

View File

@@ -12,9 +12,17 @@ jobs:
steps:
- name: Checkout master
uses: actions/checkout@master#
- name: Get the version
- name: Get version number
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Update version file
uses: DamianReeves/write-file-action@v1.0
with:
path: recipes/version.py
contents: |
VERSION_NUMBER = '${{ steps.get_version.outputs.VERSION }}'
BUILD_REF = '${{ github.sha }}'
write-mode: overwrite
- name: Build and publish image
uses: ilteoood/docker_buildx@master
with: