mirror of
https://github.com/LBRYFoundation/herald.go.git
synced 2025-09-30 15:10:33 +00:00
workflows
This commit is contained in:
parent
7c93834f5b
commit
974e2ba7f8
4 changed files with 36 additions and 31 deletions
31
.github/workflows/action.yml
vendored
31
.github/workflows/action.yml
vendored
|
@ -1,31 +0,0 @@
|
|||
# action.yml
|
||||
name: 'Hub'
|
||||
description: 'go hub'
|
||||
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
steps:
|
||||
- run: go build .
|
||||
- run: ./protobuf/build.sh
|
||||
|
||||
pull_request:
|
||||
jobs:
|
||||
draft-release:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
using: python:3.8.11-alpine3.14
|
||||
steps:
|
||||
- run: python3 scripts/version.py current --commit # creates a draft release
|
||||
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
full-release:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
using: python:3.8.11-alpine3.14
|
||||
steps:
|
||||
- run: python3 scripts/version.py current --commit --commit ---commit
|
||||
|
11
.github/workflows/build.yml
vendored
Normal file
11
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
name: 'Build Hub'
|
||||
description: 'Build job that runs on every commit'
|
||||
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
steps:
|
||||
- run: go build .
|
||||
- run: ./protobuf/build.sh
|
13
.github/workflows/draft-release.yml
vendored
Normal file
13
.github/workflows/draft-release.yml
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
# draft-release.yml
|
||||
name: "draft-release"
|
||||
description: "draft release that runs on PRs"
|
||||
on:
|
||||
pull_request:
|
||||
jobs:
|
||||
draft-release:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
using: python:3.8.11-alpine3.14
|
||||
steps:
|
||||
- run: python3 scripts/version.py current --commit # creates a draft release
|
||||
|
||||
|
12
.github/workflows/full-release.yml
vendored
Normal file
12
.github/workflows/full-release.yml
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
name: "full-release"
|
||||
description: "full release on commit to master"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
release:
|
||||
runs-on: golang:1.16.6-alpine3.14
|
||||
using: python:3.8.11-alpine3.14
|
||||
steps:
|
||||
- run: python3 scripts/version.py current --commit --commit --commit
|
Loading…
Add table
Reference in a new issue