Skip to content

Create Release

Create Release #4

Workflow file for this run

name: Create Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
env:
CI: false
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install Wine
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
- name: Build Client
run: |
npm install
cd client && npm run build && npm run package
- name: Build Adapter FS Bridge
run: |
cd adapter-fs-bridge && npm i && npm run build && zip -r dist.zip dist
- name: Build Adapter Iron Harvest
run: |
cd adapter-iron-harvest && npm i && npm run build && zip -r dist.zip dist
- name: Build Adapter Warthog Websocket
run: |
cd adapter-warthog-websocket && npm i && npm run build && zip -r dist.zip dist
- name: Deploy
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
No release notes.
draft: true
prerelease: true
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./client/bin/Visualiser-linux-x64.zip
asset_name: Visualiser-linux-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./client/bin/Visualiser-win32-x64.zip
asset_name: Visualiser-win32-x64.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-fs-bridge/dist.zip
asset_name: adapter-fs-bridge.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-iron-harvest/dist.zip
asset_name: adapter-iron-harvest.zip
asset_content_type: application/zip
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./adapter-warthog-websocket/dist.zip
asset_name: adapter-warthog-websocket.zip
asset_content_type: application/zip