Skip to content

Commit 2d46a5b

Browse files
committed
chore: Use semantic-release action instead of image
1 parent a39280c commit 2d46a5b

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,19 @@ jobs:
4141
id: login-ecr
4242
uses: aws-actions/amazon-ecr-login@v2
4343

44-
- name: Create release
44+
- name: Semantic Release
45+
uses: cycjimmy/semantic-release-action@v4
46+
with:
47+
semantic_version: 24.0.0
48+
extra_plugins: |
49+
@semantic-release/[email protected]
50+
@semantic-release/[email protected]
51+
@semantic-release/[email protected]
52+
@semantic-release/[email protected]
53+
@semantic-release/[email protected]
54+
@semantic-release/[email protected]
4555
env:
46-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
47-
ECR_REPOSITORY: scribd/semantic-release
48-
run: |
49-
docker pull $ECR_REGISTRY/$ECR_REPOSITORY:latest
50-
docker run --rm \
51-
-v ${{ github.workspace }}:/src \
52-
-w /src \
53-
-e CI=true \
54-
-e GITHUB_ACTIONS=true \
55-
-e GITHUB_TOKEN=${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }} \
56-
-e GITHUB_REPOSITORY=${{ github.repository }} \
57-
-e GITHUB_WORKSPACE=${{ github.workspace }} \
58-
-e GITHUB_SHA=${{ github.sha }} \
59-
-e GITHUB_REF=${{ github.ref }} \
60-
$ECR_REGISTRY/$ECR_REPOSITORY:latest --publish
56+
GITHUB_TOKEN: ${{ secrets.SCRIBD_GITHUB_GENERIC_TOKEN }}
6157

6258
- name: Logout of Amazon ECR
6359
if: always()

0 commit comments

Comments
 (0)