Skip to content

Commit

Permalink
Create release for tag (#6)
Browse files Browse the repository at this point in the history
* Create release for tag

* Fix dependency

* Add authentication for release command

* Configure repo
  • Loading branch information
mraerino authored Dec 5, 2021
1 parent c310da6 commit 9244901
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,19 @@ jobs:
with:
name: plugin
path: dist/${{ steps.names.outputs.artifact }}.tar.gz

release:
runs-on: ubuntu-20.04
needs: build
if: "${{ github.ref_type == 'tag' }}"
steps:
- name: Fetch release artifact
uses: actions/download-artifact@v2
with:
name: plugin
path: dist
- name: Create release
run: gh release create ${{ github.ref_name }} ./dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}

0 comments on commit 9244901

Please sign in to comment.