diff --git a/.gitea/workflows/publish_package.yaml b/.gitea/workflows/publish_package.yaml index 3754d93..afb7b47 100644 --- a/.gitea/workflows/publish_package.yaml +++ b/.gitea/workflows/publish_package.yaml @@ -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