Skip to content

Commit

Permalink
fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Nov 11, 2023
1 parent 272f003 commit 3477845
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
node_modules
packages
tests
build
coverage
languages
report.html
README.md
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,17 @@ jobs:
if: steps.check_version.outputs.release == 'true'
run: |
mkdir temp_dir
rsync -av --exclude-from='.distignore' ./ temp_dir/
rsync -av --prune-empty-dirs --exclude-from='.distignore' ./ temp_dir/
- name: Compress and Upload ZIP
if: steps.check_version.outputs.release == 'true'
run: |
zip -r woocommerce-pos.zip temp_dir
cd temp_dir
zip -r ../woocommerce-pos.zip .
cd ..
gh release upload v${{ env.VERSION }} woocommerce-pos.zip --clobber
rm -rf temp_dir
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


8 changes: 0 additions & 8 deletions .rsync

This file was deleted.

0 comments on commit 3477845

Please sign in to comment.