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
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Create dist Folder
|
- name: Create Build Folder
|
||||||
run: "mkdir -p dist"
|
run: "mkdir -p build"
|
||||||
- name: Remove existing dist files
|
- name: Remove existing build files
|
||||||
run: "rm -f dist/*"
|
run: "rm -f build/*"
|
||||||
- name: Copy files to dist folder
|
- name: Copy files to build folder
|
||||||
run: "cp *.{js,py,json} dist/"
|
run: "cp *.{js,py,json} build/"
|
||||||
- name: Minify JavaScript
|
- name: Minify JavaScript
|
||||||
uses: nizarmah/auto-minify@v2.1
|
uses: nizarmah/auto-minify@v2.1
|
||||||
with:
|
with:
|
||||||
directory: 'dist'
|
directory: 'build'
|
||||||
js_engine: 'uglify-js'
|
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
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
#if: ${{ github.event_name == 'release' }}
|
|
||||||
with:
|
with:
|
||||||
repository: 'dist'
|
repository: 'build'
|
||||||
commit_message: "Github Action: JS Distribution files"
|
commit_message: "Github Action: JS Build files"
|
||||||
branch: ${{ github.ref }}
|
branch: ${{ github.ref }}
|
||||||
Loading…
Reference in a new issue