Skip to content

Commit

Permalink
Revert "Merge remote-tracking branch 'upstream/master'"
Browse files Browse the repository at this point in the history
This reverts commit 2e657fe, reversing
changes made to 2950b46.
  • Loading branch information
IcedDog committed Dec 4, 2023
1 parent 2e657fe commit f1f874c
Show file tree
Hide file tree
Showing 15 changed files with 6,525 additions and 5,041 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build test page to GitHub Pages
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
inputs:
tags:
Expand Down Expand Up @@ -37,6 +39,11 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v2

- name: Replace current git hash to HTML
run: |
sed -i 's/{{CURRENT_HASH}}/${{ github.sha }}/g' ./public/index.html
sed -i 's/{{CURRENT_HASH}}/${{ github.sha }}/g' ./public/sw.js
- name: Build webpack
run: |
npm install
Expand All @@ -51,14 +58,17 @@ jobs:
with:
environment: production
version: ${{ github.sha }}
sourcemaps: './dist ./dist/assets'
sourcemaps: './dist'
set_commits: skip
ignore_missing: true

- name: Copy JavaScript to /public
run: cp -rf ./dist/* ./public/

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
path: './public'

- name: Deploy to GitHub Pages
id: deployment
Expand Down
11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3
}
]
]
}
Loading

0 comments on commit f1f874c

Please sign in to comment.