Skip to content

Commit

Permalink
Release latest on master
Browse files Browse the repository at this point in the history
  • Loading branch information
6uhrmittag committed Oct 2, 2021
1 parent 35dde84 commit e581617
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 8 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: "pre-release"

on:
push:
branches-ignore:
- master

jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
- name: setup Go
uses: actions/setup-go@v1
with:
go-version: '1.15.x'
- name: Checkout Code
uses: actions/checkout@v1
with:
ref: ${{ github.ref }}

- name: Set GOPATH, PATH and ENV
run: |
echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "GO111MODULE=on" >> $GITHUB_ENV
echo "GOPROXY=https://proxy.golang.org" >> $GITHUB_ENV
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
echo "BRANCHNAME=$(echo $GITHUB_REF | rev | cut -d / -f1 | rev)" >> $GITHUB_ENV
shell: bash

- name: build release
run: |
ls -la
cd $GITHUB_WORKSPACE
make build-all
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build - Branch ${{ env.BRANCHNAME }}"
files: |
*.tgz
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
---
name: "pre-release"

on: [ push ]

name: "release-latest"

on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pre-release:
name: "Pre Release"
release:
name: "Release latest"
runs-on: "ubuntu-latest"
steps:
- name: setup Go
Expand Down Expand Up @@ -35,8 +40,8 @@ jobs:
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build - Branch ${{ env.BRANCHNAME }}"
prerelease: false
title: "Latest Build - Branch ${{ env.BRANCHNAME }}"
files: |
*.tgz
Expand Down

0 comments on commit e581617

Please sign in to comment.