Skip to content

Commit

Permalink
Merge branch 'gh-pages' into layers-new
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisX11 committed Nov 5, 2023
2 parents 49e251c + f09b7e5 commit 0e6226e
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 18 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/webapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Web App with build step

on:
push:
branches: [ "gh-pages" ]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
run: |
npm install
npm run prepublish
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/dist/
index.php
electron-builder.env
node_modules/
node_modules/
js/bundle.js
workbox-*.js
service_worker.js
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist: trusty

language: node_js
node:
- 14
- 18

if: tag IS blank AND commit_message =~ ci-build

Expand All @@ -13,11 +13,13 @@ jobs:
os: osx
osx_image: "xcode12.5"
script:
- npm run prepublish
- electron-builder --publish=always

- name: "Linux"
os: linux
script:
- npm run prepublish
- sudo apt-get install rpm
- electron-builder --publish=onTagOrDraft

Expand Down
7 changes: 5 additions & 2 deletions css/dialogs.css
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,10 @@ dialog#edit_bedrock_binding > .dialog_wrapper > .dialog_content {
background-color: transparent;
}
#bar_item_list li {
padding: 4px;
padding: 4px;
height: 32px;
display: flex;
gap: 8px;
}
#bar_item_list li:hover {
color: var(--color-light);
Expand All @@ -1592,7 +1595,7 @@ dialog#edit_bedrock_binding > .dialog_wrapper > .dialog_content {
height: 26px;
vertical-align: text-top;
}
#bar_item_list li:not(:hover) div.icon_wrapper.add, #bar_item_list li:hover div.icon_wrapper.normal {
#bar_item_list li:not(:hover) div.icon_wrapper.add, #bar_item_list li:hover > .icon {
display: none;
}
#bar_items_current {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<script src="lib/molang.umd.js"></script>
<script src="lib/wintersky.umd.js"></script>

<script src="js/webpack/bundle.js"></script>
<script src="js/bundle.js"></script>
<script src="js/preview/OrbitControls.js"></script>
<script src="js/util/util.js"></script>
<script src="js/util/math_util.js"></script>
Expand Down
1 change: 0 additions & 1 deletion js/webpack/bundle.js

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/generate_pwa.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
const workbox = require('workbox-build');
const fs = require('fs');

let bundle_file = fs.readFileSync('./js/webpack/bundle.js', 'utf-8');
/*if (bundle_file.match(/</)) {
console.error('\x1b[31m', 'Invalid symbol detected in bundle');
process.exit(1);
}*/

workbox.generateSW({
cacheId: 'blockbench',
Expand Down
1 change: 0 additions & 1 deletion service_worker.js

This file was deleted.

2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: PathModule.resolve(__dirname, 'js', 'webpack')
path: PathModule.resolve(__dirname, 'js')
},
module: {
rules: [
Expand Down
Loading

0 comments on commit 0e6226e

Please sign in to comment.