Skip to content

Bump client version

Bump client version #7

Workflow file for this run

name: Release CD
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[cd skip]')"
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Format check
run: deno fmt --check
- name: Lint
run: deno lint
- name: Type check
run: deno task check:types
# Disabled until useful tests have been written
#- name: Test
# run: deno test -A
- name: Compile
run: |
deno task compile --all --release
- name: Create archives
run: |
7z a autorender-${{ github.ref_name }}-linux.zip ${{ github.workspace }}/src/client/bin/autorenderclient
7z a autorender-${{ github.ref_name }}-windows.zip ${{ github.workspace }}/src/client/bin/autorenderclient.exe
- name: Create release
uses: softprops/action-gh-release@v1
with:
name: Autorender Client ${{ github.ref_name }}
prerelease: ${{ contains(github.ref, 'pre') }}
body: |
For render clients of [autorender.portal2.sr](https://autorender.portal2.sr).
Windows: [Download autorender-${{ github.ref_name }}-windows.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-windows.zip)
Linux: [Download autorender-${{ github.ref_name }}-linux.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-linux.zip)
files: |
autorender-${{ github.ref_name }}-windows.zip
autorender-${{ github.ref_name }}-linux.zip