From 21a4bad94fb1b40c3a7d308317010393ba209a21 Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Thu, 1 Aug 2024 21:35:38 +0200 Subject: [PATCH] on main push workflow --- .github/workflows/{release.yml => main.yml} | 23 +++++++-------------- 1 file changed, 8 insertions(+), 15 deletions(-) rename .github/workflows/{release.yml => main.yml} (54%) diff --git a/.github/workflows/release.yml b/.github/workflows/main.yml similarity index 54% rename from .github/workflows/release.yml rename to .github/workflows/main.yml index 2f51fdc..5169525 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/main.yml @@ -2,26 +2,19 @@ name: Release Package on: push: - tags: - - 'v*' + branches: + - main + - workflow + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: - release: + docker: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Parse tag - id: parse_tag - run: "echo ${{ github.ref }} | sed 's#^refs/tags/v#::set-output name=version::#'" - - name: Create release - id: create_release - uses: release-drafter/release-drafter@v5 - with: - name: v${{ steps.parse_tag.outputs.version }} - tag: v${{ steps.parse_tag.outputs.version }} - version: v${{ steps.parse_tag.outputs.version }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build the new image run: docker build . -t ghcr.io/zeuswpi/zauth:${{ steps.parse_tag.outputs.version }} - name: Login to the container registry