Skip to content

Commit

Permalink
ci: create GH release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavestro committed Jun 9, 2024
1 parent ec1cab7 commit 7e2e326
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '*'

jobs:
build:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -47,3 +47,27 @@ jobs:
davidecavestro/gphotos-cdp:${{ env.VERSION }}
davidecavestro/gphotos-cdp:latest
if: startsWith(github.ref, 'refs/tags/')

create-release:
runs-on: ubuntu-latest
needs: build-and-push
permissions: write-all
if: startsWith(github.ref, 'refs/tags/')

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: v${{ github.ref_name }}
body: |
This release provides the container image:
`ghcr.io/davidecavestro/gphotos-cdp:${{ github.ref_name }}`
draft: false
prerelease: false

0 comments on commit 7e2e326

Please sign in to comment.