From a2d381ed1a71ce0379bad7be7ffdfc0a9f7a6db6 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 20 Jul 2022 19:33:52 +0200 Subject: [PATCH] Don't create release tags before publishing images [skip ci] --- .github/workflows/release.yml | 44 +++++++++++++++-------------------- 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70d5ed41..82ef0865 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,31 +8,6 @@ on: jobs: release: runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@master - - - name: Create Tag - id: create_tag - uses: jaywcjlove/create-tag-action@v1.1.5 - with: - token: ${{ secrets.GITHUB_TOKEN }} - package-path: ./package.json - - - name: Create Release - id: create_release - uses: actions/create-release@latest - if: steps.create_tag.outputs.successful - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.create_tag.outputs.version }} - release_name: ${{ steps.create_tag.outputs.version }} - draft: false - prerelease: false - - docker: - runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 @@ -65,3 +40,22 @@ jobs: tags: meienberger/runtipi:latest,meienberger/runtipi:${{ steps.meta.outputs.TAG }} cache-from: type=registry,ref=meienberger/runtipi:buildcache cache-to: type=registry,ref=meienberger/runtipi:buildcache,mode=max + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@v1.1.5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + package-path: ./package.json + + - name: Create Release + id: create_release + uses: actions/create-release@latest + if: steps.create_tag.outputs.successful + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.create_tag.outputs.version }} + release_name: ${{ steps.create_tag.outputs.version }} + draft: false + prerelease: false