Skip to content

Update actions and go.mod #69

Update actions and go.mod

Update actions and go.mod #69

Workflow file for this run

name: ci
on:
push:
tags:
- "v*.*.*"
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ^1.21
id: go
- uses: actions/checkout@v4
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build for Windows
run: GOOS=windows GOARCH=amd64 go build -o scoop-search.exe -v .
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'shilangyu/scoop-search'
with:
files: |
scoop-search.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}