Skip to content

Merge pull request #170 from kaitai-io/partial-parsing-tree #11

Merge pull request #170 from kaitai-io/partial-parsing-tree

Merge pull request #170 from kaitai-io/partial-parsing-tree #11

Workflow file for this run

name: build
on:
push:
branches:
- master
- stable
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- name: Use stable versions of KSC and JS runtime
run: |
npm install kaitai-struct-compiler@latest kaitai-struct@latest
node vendor_build.js
if: github.ref == 'refs/heads/stable'
- name: Set up environment variables for stable deployment
run: |
echo 'GA_ID=UA-76299550-2' >> "$GITHUB_ENV"
echo 'SENTRY_ENV=stable' >> "$GITHUB_ENV"
if: github.ref == 'refs/heads/stable'
- name: Set up environment variables for devel deployment
run: |
echo 'GA_ID=UA-76299550-3' >> "$GITHUB_ENV"
echo 'SENTRY_ENV=devel' >> "$GITHUB_ENV"
if: github.ref == 'refs/heads/master'
- name: Build
env:
SENTRY_DSN: 'https://[email protected]/202888'
run: ./build
- name: Deploy
env:
BOT_SSH_KEY: ${{secrets.BOT_SSH_KEY}}
OUTDIR: ${{ github.ref == 'refs/heads/master' && 'devel' || '' }}
run: |
./push_artifacts/git_config_kaitai_bot
./push_artifacts/publish \
-o kaitai-io \
-r ide-kaitai-io.github.io \
-d "$OUTDIR" \
-m "Regen ${GITHUB_REF#refs/heads/*} $GITHUB_REPOSITORY@$GITHUB_SHA" \
-- \
--exclude=.git \
--exclude=.github/ \
--exclude=.nojekyll \
--exclude=_build/ \
--exclude=CNAME \
--exclude=favicon.ico \
--exclude=favicon.ico.license \
--exclude=devel/ \
out/