Skip to content

Commit

Permalink
Publish release tags
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulik committed Feb 1, 2023
1 parent 1de16a4 commit 502661d
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,37 @@ jobs:
- name: Build
run: go build

build:
publish_latest:
if: github.ref == 'refs/heads/master'

runs-on: ubuntu-latest
needs:
- test

steps:
- uses: actions/checkout@v3

- name: publish master to latest
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: latest

publish_release:
if: startsWith(github.ref, 'refs/tags/v')

runs-on: ubuntu-latest

needs:
- test

steps:
- uses: actions/checkout@v3

- uses: macbre/push-to-ghcr@master
if: ${{ github.ref == 'refs/heads/master' }}
- name: publish master to latest
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# tag: # TODO: publish release tags
tag: ${{ github.ref_name}}

0 comments on commit 502661d

Please sign in to comment.