Merge pull request #563 from shogo82148/dependabot/go_modules/provide… #517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy to staging | |
on: | |
push: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
statuses: write | |
contents: read | |
environment: staging | |
steps: | |
- name: Check out code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
- name: Set up Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
cache: true | |
go-version-file: provider/github-app-token/go.mod | |
cache-dependency-path: provider/github-app-token/go.sum | |
- name: build | |
run: | | |
make build | |
working-directory: provider | |
- uses: fuller-inc/actions-aws-assume-role@f242de95e6f91240c4770502319cc68d4c61168c # v1.6.0 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::616212855146:role/github-app-token-github-actions-us-east-1 | |
role-session-tagging: true | |
use-node-id: true | |
- name: deploy | |
run: | | |
make deploy | |
working-directory: provider | |
env: | |
APP_ENV: staging | |
- name: Set up Node.js | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version-file: action/package.json | |
cache: "npm" | |
cache-dependency-path: action/package-lock.json | |
- name: Install dependencies | |
run: | | |
npm ci | |
working-directory: action | |
- name: Build | |
run: | | |
npm run build | |
working-directory: action | |
- id: generate | |
name: Use the action | |
uses: ./ | |
with: | |
provider-endpoint: https://8y6823l0x3.execute-api.us-east-1.amazonaws.com | |
app-id: "263885" | |
repositories: | | |
R_kgDOIeornQ | |
R_kgDOIevBqQ | |
- name: Check out code | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
repository: "shogo82148/improved-lamp" | |
path: improved-lamp | |
token: ${{ steps.generate.outputs.token }} |