Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
765 B
YAML
40 lines
765 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: 1.17
|
|
|
|
- name: Build
|
|
run: gen/xbuild.sh
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: dist/*
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
winget:
|
|
runs-on: windows-latest # Action can only run on Windows
|
|
needs: build
|
|
steps:
|
|
- uses: vedantmgoyal2009/winget-releaser@v2
|
|
with:
|
|
identifier: gokcehan.lf
|
|
version: ${{ github.ref_name }}
|
|
installers-regex: '-windows-\w+\.zip$'
|
|
token: ${{ secrets.WINGET_TOKEN }}
|