Skip to content

Commit

Permalink
Revert our generate zip action back. Rename folder after downloading,…
Browse files Browse the repository at this point in the history
… before zipping
  • Loading branch information
dkotter committed Jul 10, 2023
1 parent cdaf1f3 commit df461be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
run: npm ci --no-optional

- name: Generate ZIP file
run: npm run build && rm -rf ./woocommerce-gateway-payfast && unzip woocommerce-gateway-payfast.zip -d ./woocommerce-payfast-gateway
run: npm run build && rm -rf ./woocommerce-gateway-payfast && unzip woocommerce-gateway-payfast.zip -d ./woocommerce-gateway-payfast

- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: woocommerce-payfast-gateway
path: woocommerce-payfast-gateway/
name: woocommerce-gateway-payfast
path: woocommerce-gateway-payfast/
5 changes: 2 additions & 3 deletions .github/workflows/qit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ jobs:
- name: Download build
uses: actions/download-artifact@v3
with:
name: woocommerce-payfast-gateway
path: woocommerce-payfast-gateway/
name: woocommerce-gateway-payfast

- name: Build plugin zip
run: zip -r woocommerce-payfast-gateway.zip woocommerce-payfast-gateway
run: mv woocommerce-gateway-payfast woocommerce-payfast-gateway && zip -r woocommerce-payfast-gateway.zip woocommerce-payfast-gateway

- name: Set PHP version
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit df461be

Please sign in to comment.