Skip to content

Commit

Permalink
workflow update - trigger on tags, checkout remote in relase job, and…
Browse files Browse the repository at this point in the history
… remove release condition
  • Loading branch information
Robert Ramirez committed Aug 6, 2021
1 parent a1bb956 commit b8b7829
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

on:
create:
tags:
- v*
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -103,9 +106,13 @@ jobs:
release:
runs-on: ubuntu-latest
needs: package
if: ${{ contains( github.ref, 'refs/tags/' ) }}

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: '0'

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
Expand Down

0 comments on commit b8b7829

Please sign in to comment.