Skip to content

Commit

Permalink
fix pipeline to create the release
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelizia committed Oct 18, 2021
1 parent 639fe2d commit 8b31f22
Showing 1 changed file with 11 additions and 45 deletions.
56 changes: 11 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,49 +38,6 @@ jobs:

- name: Log docker images
run: ./scripts/docker-push.sh $GITHUB_SHA ${GITHUB_REF#refs/tags/}

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

go-list:
name: Create go package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: List go package
run: ./scripts/go-list.sh ${GITHUB_REF#refs/tags/}

hasura-release:
name: Creating release for hasura artifacts
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- name: Build project
run: |
(cd hasura/metadata && zip -r metadata.zip .)
(cd hasura/migrations && zip -r migrations.zip .)
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: true

- name: Upload Release Asset Metadata
id: upload-release-asset-metadata
Expand All @@ -93,7 +50,6 @@ jobs:
asset_name: metadata.zip
asset_content_type: application/zip


- name: Upload Release Asset Migrations
id: upload-release-asset-migrations
uses: actions/upload-release-asset@v1
Expand All @@ -103,4 +59,14 @@ jobs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./hasura/migrations/migrations.zip
asset_name: migrations.zip
asset_content_type: application/zip
asset_content_type: application/zip

go-list:
name: Create go package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: List go package
run: ./scripts/go-list.sh ${GITHUB_REF#refs/tags/}

0 comments on commit 8b31f22

Please sign in to comment.