Skip to content

Commit

Permalink
Added Release stage with Tag condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kobi86 committed Sep 14, 2021
1 parent 76c4727 commit 56123ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 100 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,21 @@ jobs:
draft: true
prerelease: false

- name: Set tag env var
if: startsWith(github.ref, 'refs/tags/')
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: echo ::set-env name=GIT_TAG::${GITHUB_REF#refs/*/}

- name: Upload Release Linux
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release_draft.outputs.upload_url}}
asset_path: ./CheckURL-linux.tar.gz #${{env.GIT_TAG}}.linux-amd64.tar.gz
asset_name: CheckURL${{env.GIT_TAG}}.linux-amd64.tar.gz
asset_path: ./CheckURL-linux.tar.gz
asset_name: CheckURL_${{env.GIT_TAG}}.linux-amd64.tar.gz
asset_content_type: application/gzip; charset=binary

- name: Upload Release OSX
Expand All @@ -88,6 +94,6 @@ jobs:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release_draft.outputs.upload_url}}
asset_path: ./CheckURL-osx.tar.gz #${{env.GIT_TAG}}.linux-amd64.tar.gz
asset_name: CheckURL${{env.GIT_TAG}}.darwin-amd64.tar.gz
asset_path: ./CheckURL-osx.tar.gz
asset_name: CheckURL_${{env.GIT_TAG}}.darwin-amd64.tar.gz
asset_content_type: application/gzip; charset=binary
95 changes: 0 additions & 95 deletions .goreleaser.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![CheckURL Tool CI](https://github.com/kobi86/CheckUrl/actions/workflows/go.yml/badge.svg)](https://github.com/kobi86/CheckUrl/actions/workflows/go.yml)

[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)
# Check URL

This tool scans a file with URL's, exports them into a seprate file and then checks if the url's exists.
Expand Down

0 comments on commit 56123ec

Please sign in to comment.