Skip to content

Commit

Permalink
Fix workflows publish-to-marketplace.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt75 committed Jul 6, 2023
1 parent ded17ee commit fd32611
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/publish-to-marketplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,12 @@ jobs:
- name: Checkout
uses: actions/[email protected]

- name: Get module version
id: get_version
run: |
echo ::set-output name=VERSION::$(grep "const VERSION = " ./ps_checkout.php | sed "s/.*'\(.*\)'.*/\1/")
- name: Download release asset
uses: dsaltares/[email protected]
with:
repo: ${{ github.event.repository.full_name }}
version: ${{ github.event.release.id }}
file: ${{ github.event.repository.name }}-${{ steps.get_version.outputs.VERSION }}.zip
file: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -31,6 +26,6 @@ jobs:
- name: Release zip
run: |
~/.composer/vendor/bin/publish-on-marketplace --archive=$PWD/${{ github.event.repository.name }}-${{ steps.get_version.outputs.VERSION }}.zip --metadata-json=$PWD/.github/mktp-metadata.json --changelog="${{ github.event.release.body }}" --debug
~/.composer/vendor/bin/publish-on-marketplace --archive=$PWD/${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.zip --metadata-json=$PWD/.github/mktp-metadata.json --changelog="${{ github.event.release.body }}" --debug
env:
MARKETPLACE_API_KEY: ${{ secrets.MARKETPLACE_API_KEY }}

0 comments on commit fd32611

Please sign in to comment.