Skip to content

Commit

Permalink
debug EXCLUDES
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Nov 11, 2023
1 parent 4b1466c commit 77e6744
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,22 @@ jobs:
- name: Read .distignore
if: steps.check_version.outputs.release == 'true'
id: read_distignore
run: |
EXCLUDES=$(awk '{print "-x \42"$0"\42"}' .distignore | xargs)
echo "EXCLUDES=$EXCLUDES" >> $GITHUB_ENV
- name: Debug EXCLUDES
if: steps.check_version.outputs.release == 'true'
run: |
echo "Exclude string: $EXCLUDES"
- name: Compress and Upload ZIP
if: steps.check_version.outputs.release == 'true'
run: |
set -x
zip -r woocommerce-pos.zip . $EXCLUDES
set +x
gh release upload v${{ env.VERSION }} woocommerce-pos.zip --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 77e6744

Please sign in to comment.