22 lines
554 B
YAML
22 lines
554 B
YAML
|
on: [push]
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- uses: actions/setup-go@v4
|
||
|
with:
|
||
|
go-version-file: "go.mod"
|
||
|
- name: Install dependencies
|
||
|
run: go mod download
|
||
|
- name: Build go
|
||
|
run: go build -o serv -v ./...
|
||
|
- uses: actions/forgejo-release@v1
|
||
|
with:
|
||
|
direction: upload
|
||
|
url: https://gitrepo.ru
|
||
|
repo: neonxp/serv
|
||
|
release-dir: .
|
||
|
token: '${{secrets.RELEASE_TOKEN}}'
|