forked from kaitai-io/kaitai_struct_webide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vastly improved HexEditor render speeds/actions, rewritten FileDrop t…
…o Vue, removed FileSystemManager and replaced it's usage with FileSystemsStore, removed unused build steps files,
- Loading branch information
Showing
40 changed files
with
324 additions
and
743 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,24 @@ | ||
name: build | ||
name: Deploy to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- master | ||
- stable | ||
branches: [ "v3-refactor" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
|
@@ -13,47 +27,35 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-node@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
node-version: "20" | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- run: npm ci | ||
- name: Use stable versions of KSC and JS runtime | ||
run: | | ||
npm install kaitai-struct-compiler@latest kaitai-struct@latest | ||
npm run generate-license | ||
npm run generate-formats | ||
npm run parcel-build | ||
if: github.ref == 'refs/heads/stable' | ||
- name: Set up environment variables for stable deployment | ||
run: | | ||
echo 'SENTRY_ENV=stable' >> "$GITHUB_ENV" | ||
if: github.ref == 'refs/heads/stable' | ||
- name: Set up environment variables for devel deployment | ||
run: | | ||
echo 'SENTRY_ENV=devel' >> "$GITHUB_ENV" | ||
if: github.ref == 'refs/heads/master' | ||
- name: Build | ||
env: | ||
SENTRY_DSN: 'https://[email protected]/202888' | ||
run: node build.js "dist" | ||
- 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/ \ | ||
dist/ | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ./dist | ||
|
||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file was deleted.
Oops, something went wrong.
Submodule push_artifacts
deleted from
04b0a0
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.