34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Publish New Release
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v5.1.0
|
|
with:
|
|
aws-region: us-east-1
|
|
role-to-assume: arn:aws:iam::028537455170:role/Github/GithubAssetsUploadRole_jvm-oom-handler
|
|
role-session-name: GithubAction
|
|
|
|
- name: Upload to s3
|
|
run: ./uploadToS3.sh "${{ github.event.release.tag_name }}"
|
|
|
|
- name: Slack
|
|
uses: codio/codio-slack-action@master
|
|
if: always()
|
|
with:
|
|
slack_hook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
message: "<https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}|${{ github.workflow }} release> for ${{ github.repository }} by ${{ github.actor }} has ${{ job.status }} on branch ${{ github.ref_name }}"
|
|
success: ${{ job.status }}
|