Skip to content

Commit 28c5e1b

Browse files
committed
fix: actions deployment
1 parent d8ff373 commit 28c5e1b

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.github/workflows/build-deploy-prod.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ jobs:
3737
- name: Configure AWS credentials
3838
uses: aws-actions/configure-aws-credentials@v1
3939
with:
40-
# role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/github-actions-role
41-
role-to-assume: arn:aws:iam::381177214925:role/github-actions-role
42-
aws-region: us-east-1
40+
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/github-actions-role
41+
aws-region: ${{ env.AWS_REGION }}
4342
role-session-name: GithubActions
4443

4544
# gather metadata from git & github actions to reference in docker

.github/workflows/release.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
# Copyright 2020 ChainSafe Systems
22
# SPDX-License-Identifier: LGPL-3.0-only
3-
4-
name: Release
3+
4+
name: Deploy Release
55
on:
66
push:
77
branches:
8-
- main
9-
8+
- 'fix/actions-deployment'
109
jobs:
11-
release-please:
10+
release:
11+
permissions: write-all
1212
runs-on: ubuntu-latest
13+
outputs:
14+
release_created: ${{ steps.release.outputs.release_created }}
15+
tag: ${{ steps.release.outputs.tag_name }}
1316
steps:
1417
- uses: GoogleCloudPlatform/[email protected]
15-
id: release
18+
id: release
1619
with:
1720
release-type: go
18-
21+
token: ${{secrets.GITHUB_TOKEN}}
22+
23+
deploy-services:
24+
needs: release
25+
uses: ChainSafe/nodewatch-api/.github/workflows/build-deploy-prod.yml@fix/actions-deployment
26+
if: ${{ needs.release.outputs.release_created }}
27+
with:
28+
tag: ${{ needs.release.outputs.tag }}

0 commit comments

Comments
 (0)