Skip to content

build(deps): bump github.com/heroku/x from 0.0.50 to 0.0.59 #220

build(deps): bump github.com/heroku/x from 0.0.50 to 0.0.59

build(deps): bump github.com/heroku/x from 0.0.50 to 0.0.59 #220

Workflow file for this run

name: Go
on:
push:
tags-ignore:
- v*-*-*
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Cache go module
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies and run test
run: |
go install
go test ./...
- name: gen go-bindata
if: startsWith(github.ref, 'refs/tags/')
run: |
curl --silent --location --output /usr/local/bin/go-bindata https://github.com/kevinburke/go-bindata/releases/download/v3.11.0/go-bindata-linux-amd64
chmod 755 /usr/local/bin/go-bindata
go-bindata -o internal/bindata/geoip/geoip.go -pkg bingeoip assets/GeoLite2-City.mmdb assets/flags.json
- name: Build
if: startsWith(github.ref, 'refs/tags/')
env:
NAME: toshiki-proxypool
BINDIR: bin
run: make -j releases && make sha256sum
- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: bin/*
draft: true
prerelease: true
- uses: actions/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
name: build
path: bin