Go back to build because dist fails for mysterious reasons
This commit is contained in:
parent
4878d5e9aa
commit
9d67588f46
1 changed files with 11 additions and 11 deletions
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
|
|
@ -16,21 +16,21 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
- name: Create dist Folder
|
||||
run: "mkdir -p dist"
|
||||
- name: Remove existing dist files
|
||||
run: "rm -f dist/*"
|
||||
- name: Copy files to dist folder
|
||||
run: "cp *.{js,py,json} dist/"
|
||||
- name: Create Build Folder
|
||||
run: "mkdir -p build"
|
||||
- name: Remove existing build files
|
||||
run: "rm -f build/*"
|
||||
- name: Copy files to build folder
|
||||
run: "cp *.{js,py,json} build/"
|
||||
- name: Minify JavaScript
|
||||
uses: nizarmah/auto-minify@v2.1
|
||||
with:
|
||||
directory: 'dist'
|
||||
directory: 'build'
|
||||
js_engine: 'uglify-js'
|
||||
- name: Commit Distribution Files
|
||||
# Eventually only do this step on release
|
||||
- name: Commit Build Files
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
#if: ${{ github.event_name == 'release' }}
|
||||
with:
|
||||
repository: 'dist'
|
||||
commit_message: "Github Action: JS Distribution files"
|
||||
repository: 'build'
|
||||
commit_message: "Github Action: JS Build files"
|
||||
branch: ${{ github.ref }}
|
||||
Loading…
Reference in a new issue