Skip to content

fix wda null bugs

fix wda null bugs #55

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: replace version
run: ver=${{ steps.previoustag.outputs.tag }} && new_ver=${ver:1} && sed -i "s/SONIC_VERSION/${new_ver}/g" cmd/version.go
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v1.18.0
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}