Only check client code #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 src/client | |
- name: Lint | |
run: deno lint src/client | |
- name: Type check | |
run: deno check --no-lock --import-map src/import_map.json src/client/*.ts | |
# 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 |