Skip to content

Commit

Permalink
chore: Use semantic-release action instead of image
Browse files Browse the repository at this point in the history
  • Loading branch information
basmscribd committed Jan 10, 2025
1 parent a39280c commit 2d46a5b
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,19 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Create release
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 24.0.0
extra_plugins: |
@semantic-release/commit-analyzer@13.0.0
@semantic-release/release-notes-generator@14.0.1
@semantic-release/changelog@6.0.3
@semantic-release/exec@6.0.3
@semantic-release/git@10.0.1
@semantic-release/github@10.0.6
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: scribd/semantic-release
run: |
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker run --rm \
-v ${{ github.workspace }}:/src \
-w /src \
-e CI=true \
-e GITHUB_ACTIONS=true \
-e GITHUB_TOKEN=${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }} \
-e GITHUB_REPOSITORY=${{ github.repository }} \
-e GITHUB_WORKSPACE=${{ github.workspace }} \
-e GITHUB_SHA=${{ github.sha }} \
-e GITHUB_REF=${{ github.ref }} \
$ECR_REGISTRY/$ECR_REPOSITORY:latest --publish
GITHUB_TOKEN: ${{ secrets.SCRIBD_GITHUB_GENERIC_TOKEN }}

- name: Logout of Amazon ECR
if: always()
Expand Down

0 comments on commit 2d46a5b

Please sign in to comment.