Skip to content

Commit

Permalink
on main push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xerbalind committed Aug 1, 2024
1 parent 5187cc2 commit 21a4bad
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21a4bad

Please sign in to comment.