Skip to content

Commit

Permalink
semantic-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 11, 2024
1 parent 694dcda commit fe20bdc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: read
contents: write # 'write' required for semantic-release-action
packages: write
attestations: write
id-token: write
Expand All @@ -28,6 +28,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# will generate a git tag => then, used by docker/metadata-action
- name: Semantic Release
id: semantic_release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
Expand Down
20 changes: 20 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# default
branches:
- '+([0-9])?(.{+([0-9]),x}).x'
- master
- main
- next
- next-major
- name: beta
prerelease: true
- name: alpha
prerelease: true
# ADDed
- name: app-router
prerelease: true
branch: main

plugins:
- '@semantic-release/github':
successComment: false
failTitle: false

0 comments on commit fe20bdc

Please sign in to comment.