diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ddb641..92a6fc0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -229,6 +229,12 @@ jobs: echo "$changelog" > changelog.md echo "changelog_body=$(cat changelog.md)" >> $GITHUB_ENV + - name: Push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git push origin --follow-tags + - name: Create a GitHub Release uses: softprops/action-gh-release@v1 env: @@ -265,12 +271,6 @@ jobs: draft: false prerelease: false - - name: Push changes - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git push origin --follow-tags - - name: Upload artifacts uses: actions/upload-artifact@v3 with: @@ -278,7 +278,7 @@ jobs: path: artifacts publish-docker-image: - needs: [build-release-artifacts] + needs: [publish-github-release] name: Publishing Docker image to Docker Hub runs-on: ubuntu-latest steps: @@ -288,6 +288,11 @@ jobs: name: artifacts path: artifacts + - name: Set version variable + run: | + version="$(cat artifacts/release-version)" + echo "version=$version" >> $GITHUB_ENV + - name: Validate release environment variables run: | echo "Release version: ${{ env.version }}"