v1.12.1-publisher-4 #25
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: Release Binary on Release Creation | |
on: | |
release: | |
types: [created, edited] | |
jobs: | |
build-and-upload: | |
name: Build and Upload Binary | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Run Make Install | |
run: make install | |
- name: Make binary executable | |
run: chmod +x /home/runner/go/bin/injectived | |
- name: Upload Release Asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: /home/runner/go/bin/injectived | |
asset_name: injectived-${{ github.event.release.tag_name }}-amd64 | |
asset_content_type: application/octet-stream |