Skip to content

Commit 8a61e1b

Browse files
committed
chore: set up release-please to tag docker builds
1 parent 5f9c068 commit 8a61e1b

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

.github/workflows/django-api.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77
branches: [main]
88

99
permissions:
10-
contents: read
10+
contents: write
11+
pull-requests: write
12+
issues: write
1113
packages: write # Needed to push to ghcr.io
1214

1315
jobs:
@@ -16,6 +18,14 @@ jobs:
1618
runs-on: ubuntu-latest
1719

1820
steps:
21+
- name: Release PR or GitHub Release
22+
23+
uses: google-github-actions/release-please-action@v4
24+
id: release
25+
if: ${{ github.ref == 'refs/heads/main' }}
26+
with:
27+
release-type: python
28+
1929
- name: Checkout code
2030
uses: actions/checkout@v4
2131

@@ -31,6 +41,7 @@ jobs:
3141
type=raw,value=latest,enable={{is_default_branch}}
3242
type=ref,event=tag
3343
type=ref,event=branch
44+
type=raw,value=${{ steps.release.outputs.tag_name }},enable=${{ github.ref == 'refs/heads/main' && steps.release.outputs.release_created == 'true' }}
3445
type=sha
3546
3647
- name: Log in to GHCR

.github/workflows/release-please.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)