mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-05-04 08:21:28 +00:00
63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
tags-ignore:
|
|
- '**'
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- README.md
|
|
|
|
jobs:
|
|
renderer:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
- run: npm ci
|
|
working-directory: ./renderer
|
|
- run: npm run make-index-files
|
|
working-directory: ./renderer
|
|
- run: npm run lint
|
|
working-directory: ./renderer
|
|
- run: npm run build
|
|
working-directory: ./renderer
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: renderer-dist
|
|
path: ./renderer/dist
|
|
retention-days: 1
|
|
|
|
package:
|
|
needs: renderer
|
|
strategy:
|
|
matrix:
|
|
os: [windows-2025, ubuntu-22.04, macos-14]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: renderer-dist
|
|
path: ./renderer/dist
|
|
- run: npm ci
|
|
working-directory: ./main
|
|
- run: npm run build
|
|
working-directory: ./main
|
|
- run: npm run package "--" -p onTagOrDraft
|
|
working-directory: ./main
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Hash
|
|
if: ${{ startsWith(matrix.os, 'windows') }}
|
|
run: type .\main\dist\latest.yml
|
|
- name: Hash
|
|
if: ${{ startsWith(matrix.os, 'ubuntu') }}
|
|
run: cat ./main/dist/latest-linux.yml
|
|
- name: Hash
|
|
if: ${{ startsWith(matrix.os, 'macos') }}
|
|
run: cat ./main/dist/latest-mac.yml
|