Skip to content

Commit

Permalink
πŸ—“ May 5, 2022 10:49:56 AM
Browse files Browse the repository at this point in the history
πŸ” add tags

πŸ—“ May 5, 2022 10:51:40 AM

πŸ’š build steps added/updated

πŸ—“ May 5, 2022 4:48:01 PM

πŸ’š build steps added/updated
  • Loading branch information
securisec committed May 5, 2022
1 parent 19c114f commit 9861333
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ on:
branches:
- master

name: Build *nix
name: Build DEV

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true

steps:
- name: Checkout
Expand Down Expand Up @@ -66,17 +65,3 @@ jobs:
release_name: DEV
file_glob: true
file: dist/build/*


- name: Release tagged
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file: dist/build/*

- if: failure()
run: ls -R
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
tags:
- "*"

name: Build release
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup go
uses: actions/[email protected]
with:
version: "1.17"

- uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build with goreleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: latest
args: release --skip-announce --rm-dist --snapshot

- name: Release tagged
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
file: dist/build/*

- if: failure()
run: ls -R

0 comments on commit 9861333

Please sign in to comment.