Merge pull request #161 from kaitai-io/better-import-errors #2
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: 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: '16' | |
- run: npm install | |
- 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/ |