Bump gorm.io/gorm from 1.25.6 to 1.25.10 #203
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go environment | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.15.x | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Cache go module | |
uses: actions/cache@v2 | |
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 test ./... | |
- name: Build | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
NAME: IpProxyPool | |
BINDIR: bin | |
run: make -j releases | |
- name: Release | |
uses: softprops/action-gh-release@v0.1.5 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: bin/* | |
draft: true | |
prerelease: true | |
body: "Place config.yaml in work dir and run with `-c config.yaml`" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: build | |
path: bin |