make exist folder to avoid loop
This commit is contained in:
parent
2d5d03a163
commit
8a3a818f4c
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -16,6 +16,8 @@ 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
|
||||
|
|
@ -27,6 +29,7 @@ jobs:
|
|||
js_engine: 'uglify-js'
|
||||
- name: Commit Distribution Files
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
with:
|
||||
repository: 'dist'
|
||||
commit_message: "Github Action: JS Distribution files"
|
||||
|
|
|
|||
Loading…
Reference in a new issue