Skip to content

Update publish.yaml

Update publish.yaml #5

Workflow file for this run

name: Build and Publish Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.16
- name: Build Go executable
run: go build -o wspubsubgo.exe
- name: Create Release Draft
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: ${{ github.event.head_commit.message }}
draft: true
artifacts: wspubsubgo.exe
- name: Release Draft
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref_name }}
draft: false
updateOnlyUnreleased: true
allowUpdates: true
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
makeLatest: true