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