@@ -15,53 +15,26 @@ permissions:
15
15
jobs :
16
16
release :
17
17
name : Release
18
- runs-on : ubuntu-20.04
19
- needs : []
18
+ runs-on : ubuntu-latest
20
19
steps :
21
20
- name : Checkout
22
- # A GitHub Action to checkout a repository.
23
- # https://github.com/actions/checkout
24
21
uses : actions/checkout@v4
25
22
with :
26
- token : ${{ secrets.GITHUB_TOKEN }}
27
23
persist-credentials : false
28
24
29
- - name : Inject slug/short variables
30
- # A GitHub Action to expose the slug values of some GitHub ENV variables
31
- # https://github.com/rlespinasse/github-slug-action
32
- uses :
rlespinasse/[email protected]
33
-
34
- - name : Configure AWS credentials
35
- uses : aws-actions/configure-aws-credentials@v4
25
+ - name : Semantic Release
26
+ uses : cycjimmy/semantic-release-action@v4
36
27
with :
37
- role-to-assume : ${{ secrets.DEPLOYER_PRODUCTION_ROLE_ARN }}
38
- aws-region : ${{ env.AWS_REGION }}
39
-
40
- - name : Login to Amazon ECR
41
- id : login-ecr
42
- uses : aws-actions/amazon-ecr-login@v2
43
-
44
- - name : Create release
28
+ semantic_version : 24.0.0
29
+ extra_plugins : |
30
+ @semantic-release/[email protected]
31
+ @semantic-release/[email protected]
32
+ @semantic-release/[email protected]
33
+ @semantic-release/[email protected]
34
+ @semantic-release/[email protected]
35
+ @semantic- release/[email protected]
45
36
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
61
-
62
- - name : Logout of Amazon ECR
63
- if : always()
64
- run : docker logout ${{ steps.login-ecr.outputs.registry }}
37
+ GITHUB_TOKEN : ${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }}
65
38
66
39
- name : Send Slack notification
67
40
if : always()
0 commit comments