Fix installer cmd color formatting using FFI (#1) #6
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 | |
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 | |
#- name: Test | |
# run: deno test -A | |
- name: Compile | |
run: | | |
deno task compile | |
- name: Pack VPKs | |
run: | | |
deno task pack | |
- name: Create archives | |
run: | | |
7z a cmm-linux.zip ${{ github.workspace }}/cmm | |
7z a cmm-windows.zip ${{ github.workspace }}/cmm.exe | |
pushd mods/portal_stories | |
7z a cmm-portal_stories.zip -x'!resource' -x'!scripts' | |
popd | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: CMM ${{ github.ref_name }} | |
prerelease: ${{ contains(github.ref, 'pre') }} | |
body: | | |
Challenge Mode Mod Installer. | |
Windows: [Download cmm-windows.zip](https://github.com/NeKzor/cmm/releases/download/${{ github.ref_name }}/cmm-windows.zip) | |
Linux: [Download cmm-linux.zip](https://github.com/NeKzor/cmm/releases/download/${{ github.ref_name }}/cmm-linux.zip) | |
Requirements: | |
- [SAR 1.13+](https://sar.portal2.sr) | |
Usage: | |
- Run the installer from anywhere. Required files will be downloaded automatically. | |
files: | | |
cmm-linux.zip | |
cmm-windows.zip | |
mods/portal_stories/cmm-portal_stories.zip |