Skip to content

Commit

Permalink
Merge pull request #8 from supabase/fix/temp-disable-tests
Browse files Browse the repository at this point in the history
fix: adds release assets to releases
  • Loading branch information
awalias authored Sep 7, 2020
2 parents ae02d91 + 7b33ed3 commit 23f515f
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ jobs:
node: ['12']

outputs:
status: ${{ steps.github-release.conclusion }}
status: ${{ steps.pre-release.outputs.release != steps.post-release.outputs.release }}

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- id: pre-release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: supabase
repo: gotrue
excludes: prerelease, draft

- name: Set up Node
uses: actions/setup-node@v1
with:
Expand All @@ -32,10 +39,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: post-release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: supabase
repo: gotrue
excludes: prerelease, draft

deploy:
needs: release
runs-on: ubuntu-18.04
if: needs.release.outputs.status == 'success'
if: success() && needs.release.outputs.status == 'true'
steps:
- uses: actions/checkout@v2

Expand All @@ -56,7 +70,8 @@ jobs:

- run: tar -czvf gotrue-${{ steps.releases.outputs.release }}.tar.gz gotrue

- uses: actions/upload-artifact@v1
- uses: AButler/upload-release-assets@v2.0
with:
name: gotrue-${{ steps.releases.outputs.release }}.tar.gz
path: ./gotrue-${{ steps.releases.outputs.release }}.tar.gz
files: 'gotrue-${{ steps.releases.outputs.release }}.tar.gz'
release-tag: ${{ steps.releases.outputs.release }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 23f515f

Please sign in to comment.