Skip to content

Merge pull request #1 from CodeSignal/feat/split-screen-side-sim-support #3

Merge pull request #1 from CodeSignal/feat/split-screen-side-sim-support

Merge pull request #1 from CodeSignal/feat/split-screen-side-sim-support #3

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build frontend
run: npm run build
- name: Prune dev dependencies
run: npm prune --production
- name: Create release artifact
run: tar -czf release.tar.gz dist server.js intersections.js config.json package.json node_modules
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: release-${{ github.sha }}
name: Release ${{ github.sha }}
files: release.tar.gz
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}