Go back to build because dist fails for mysterious reasons

This commit is contained in:
Melissa LeBlanc-Williams 2023-03-14 14:41:28 -07:00
parent 4878d5e9aa
commit 9d67588f46

View file

@ -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 }}