v2.25.0-orm.16 #31
Workflow file for this run
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: Publish release artifacts | |
on: | |
release: | |
types: [created] | |
jobs: | |
update_readme: | |
name: Update Readme | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Update versions in readme | |
run: | | |
sed -r -i "s/aws-nuke:v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke:${{ github.ref_name }}/" README.md | |
sed -r -i "s/aws-nuke-v[0-9]+\.[0-9]+\.[0-9]+/aws-nuke-${{ github.ref_name }}/" README.md | |
sed -r -i "s/\/v[0-9]+\.[0-9]+\.[0-9]+\//\/${{ github.ref_name }}\//" README.md | |
- uses: peter-evans/create-pull-request@v6 | |
name: Create Pull Request | |
with: | |
title: Update readme for ${{ github.ref_name }} release | |
commit-message: Update readme for ${{ github.ref_name }} release | |
body: Updating version references in the readme to ${{ github.ref_name }} | |
branch: update-readme-${{ github.ref_name }} | |
delete-branch: true | |
release: | |
name: Publish binaries | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build Project binaries | |
env: | |
CGO_ENABLED: 0 | |
run: | | |
make xc | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/aws* | |
tag: ${{ github.ref }} | |
overwrite: true | |
file_glob: true |