Skip to content

Commit

Permalink
release from github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmarin committed Feb 3, 2023
1 parent f72aaa1 commit 97321c8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,31 @@ jobs:
run: |
go install github.com/mattn/goveralls@latest;
goveralls -coverprofile=c.out -service=github;
release:
name: Release app
runs-on: ubuntu-latest
needs:
- integration-pipeline
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
- name: Checkout
uses: actions/checkout@v3
- name: Setup
run: |
export PATH=$PATH:/tmp;
wget -qO - "https://github.com/go-task/task/releases/download/v2.2.1/task_linux_amd64.tar.gz" | tar zxf - -C /tmp task;
ls -la /tmp/task;
task --version;
- name: Build binary files
run: |
BINARY_PATH="release/syml" CGO_ENABLED=0 GOOS=linux GOARCH=amd64 task compile;
ls release/;
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: release/syml-linux
draft: true
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Release

Every tag will be built, just place a tag and push it.
Tag and release draft will be created with assets in release.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Maintainability](https://api.codeclimate.com/v1/badges/e047b9311147b1e8b419/maintainability)](https://codeclimate.com/github/antonmarin/secret-yaml/maintainability)
[![Coverage Status](https://coveralls.io/repos/github/antonmarin/secret-yaml/badge.svg?branch=master)](https://coveralls.io/github/antonmarin/secret-yaml?branch=master)
[![Build Status](https://travis-ci.org/antonmarin/secret-yaml.svg?branch=master)](https://travis-ci.org/antonmarin/secret-yaml)
[![GoDoc](https://godoc.org/github.com/antonmarin/secret-yaml?status.svg)](https://godoc.org/github.com/antonmarin/secret-yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/antonmarin/secret-yaml)](https://goreportcard.com/report/github.com/antonmarin/secret-yaml)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fantonmarin%2Fsecret-yaml.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fantonmarin%2Fsecret-yaml?ref=badge_shield)
Expand Down

0 comments on commit 97321c8

Please sign in to comment.