Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 10 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,10 @@ env:

on:
workflow_dispatch: ~
push:
tags:
- 'v*'
release:
types: [published]

jobs:

# Create a Release
create_release:
name: 🚀 Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- 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: false

####################################################################################
### TAVERN ###
####################################################################################
Expand All @@ -39,7 +19,6 @@ jobs:
###
upload_tavern:
name: 🚀 [Linux] Tavern
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -55,7 +34,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: tavern
asset_path: ${{ runner.temp }}/realm_build/tavern
asset_content_type: application/octet-stream
Expand All @@ -69,7 +48,6 @@ jobs:
###
upload_imix_linux:
name: 🚀 [Linux] Imix
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -95,7 +73,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: imix-x86_64-unknown-linux-musl
asset_path: ${{ runner.temp }}/realm_build/x86_64-unknown-linux-musl/release/imix
asset_content_type: application/octet-stream
Expand All @@ -104,7 +82,6 @@ jobs:
###
upload_imix_macos:
name: 🚀 [MacOS] Imix
needs: create_release # Depends on release being created for upload URL
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -125,7 +102,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: imix-x86_64-apple-darwin
asset_path: ${{ runner.temp }}/realm_build/x86_64-apple-darwin/release/imix
asset_content_type: application/octet-stream
Expand All @@ -134,7 +111,6 @@ jobs:
###
upload_imix_windows:
name: 🚀 [Windows] Imix
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -179,7 +155,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: imix-x86_64-pc-windows-gnu.exe
asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-gnu/release/imix.exe
asset_content_type: application/octet-stream
Expand All @@ -188,7 +164,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: imix-x86_64-pc-windows-gnu.dll
asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-gnu/release/imix.dll
asset_content_type: application/octet-stream
Expand All @@ -202,7 +178,6 @@ jobs:
###
upload_golem_linux:
name: 🚀 [Linux] Golem
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -228,7 +203,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: golem-x86_64-unknown-linux-musl
asset_path: ${{ runner.temp }}/realm_build/x86_64-unknown-linux-musl/release/golem
asset_content_type: application/octet-stream
Expand All @@ -237,7 +212,6 @@ jobs:
###
upload_golem_macos:
name: 🚀 [MacOS] Golem
needs: create_release # Depends on release being created for upload URL
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -258,7 +232,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: golem-x86_64-apple-darwin
asset_path: ${{ runner.temp }}/realm_build/x86_64-apple-darwin/release/golem
asset_content_type: application/octet-stream
Expand All @@ -267,7 +241,6 @@ jobs:
###
upload_golem_windows:
name: 🚀 [Windows] Golem
needs: create_release # Depends on release being created for upload URL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -306,7 +279,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
upload_url: ${{ github.event.release.upload_url }}
asset_name: golem-x86_64-pc-windows-gnu.exe
asset_path: ${{ runner.temp }}/realm_build/x86_64-pc-windows-gnu/release/golem.exe
asset_content_type: application/octet-stream