Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

maven: bump the minor group across 1 directory with 17 updates #71

maven: bump the minor group across 1 directory with 17 updates

maven: bump the minor group across 1 directory with 17 updates #71

Workflow file for this run

name: Release
on:
pull_request:
branches:
- main
types:
- closed
env:
SESSION_NAME: "gh_action"
AWS_REGION: "us-east-2"
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
Deploy:
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')
runs-on: ubuntu-latest
environment: Production
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'zulu'
- name: Install xmlstarlet
run: sudo apt-get update && sudo apt-get install -y xmlstarlet
- name: SetVars
run: |
sed -i 's/${AWS::AccountId}/${{ secrets.AWS_ACCOUNT_ID }}/' infra/role/template.yml
- name: AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::254962200554:role/GitHubDeployBase
role-session-name: ${{ env.SESSION_NAME }}
aws-region: ${{ env.AWS_REGION }}
- name: SAM Deploy GitHub
run: cd infra/role && sam build && sam package && sam deploy
- name: AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::254962200554:role/GitHubDeployPublishDataLoad
role-session-name: ${{ env.SESSION_NAME }}
aws-region: ${{ env.AWS_REGION }}
- name: SAM Deploy AWS
run: cd infra/function && sam build && sam package && sam deploy
- name: Get Version
id: version
run: echo "current=$(xmlstarlet sel -t -m _:project -v _:version pom.xml)" >> $GITHUB_OUTPUT
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.version.outputs.current }}