Skip to content

chore(master): release 1.2.1 #39

chore(master): release 1.2.1

chore(master): release 1.2.1 #39

Workflow file for this run

name: Release Please
on:
workflow_dispatch:
pull_request:
types:
- closed
permissions:
contents: write
pull-requests: write
jobs:
test:
if: |
github.event.pull_request.merged == true &&
github.ref_name == 'master' &&
!contains(github.event.pull_request.head.name, 'release')
uses: ./.github/workflows/test.yaml
release-please:
if: |
github.event.pull_request.merged == true &&
github.ref_name == 'master' &&
!contains(github.event.pull_request.head.name, 'release')
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.18.x"
- name: Build EchoIP binary
run: go build -o ./echoip ./cmd/echoip/main.go
- uses: google-github-actions/release-please-action@v3
id: release
with:
component: "echoip"
bootstrap-sha: "ef1f4b388c24e977ec63d6943ac8f0b0c5f51b58"
release-type: "go"
- name: Compress Release
if: ${{ steps.release.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
zip -r echoip-linux-amd64-${{ steps.release.outputs.tag_name }}.zip echoip html LICENSE
- name: Upload Release
if: ${{ steps.release.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} echoip-linux-amd64-${{ steps.release.outputs.tag_name }}.zip