|
|
|
@ -1,9 +1,13 @@
|
|
|
|
|
name: Publish Cargo and Docker package
|
|
|
|
|
run-name: ${{ github.actor }} is building ${{ github.repository }}
|
|
|
|
|
on:
|
|
|
|
|
# on:
|
|
|
|
|
# push:
|
|
|
|
|
# tags:
|
|
|
|
|
# - 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
tags:
|
|
|
|
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
Publish-Cargo:
|
|
|
|
@ -35,11 +39,11 @@ jobs:
|
|
|
|
|
- name: Check out repository code
|
|
|
|
|
uses: https://github.com/actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
# - name: Write release version
|
|
|
|
|
# run: |
|
|
|
|
|
# VERSION=${GITHUB_REF_NAME#v}
|
|
|
|
|
# echo Version: $VERSION
|
|
|
|
|
# echo "VERSION=$VERSION" >> $GITHUB_ENV
|
|
|
|
|
- name: Write release version
|
|
|
|
|
run: |
|
|
|
|
|
VERSION=${GITHUB_REF_NAME#v}
|
|
|
|
|
echo Version: $VERSION
|
|
|
|
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
|
|
|
|
|
|
|
|
|
- name: Install Docker
|
|
|
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
|
|
|