forked from PrestaShopCorp/ps_checkout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to publish on the marketplace (with debug)
- Loading branch information
1 parent
4336467
commit 7c0d139
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"id_product" : "46347", | ||
"technical_name" : "ps_checkout", | ||
"display_name" : "PrestaShop Checkout", | ||
"channel" : "stable", | ||
"type_upgrade" : "updatemin", | ||
"product_type" : "module", | ||
"compatible_from" : "1.6.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish to the Marketplace | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish_to_marketplace: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- 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 }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Prepare publishing tool | ||
run: | | ||
composer global require prestashop/publish-on-marketplace | ||
- name: Release zip | ||
run: | | ||
~/.composer/vendor/bin/publish-on-marketplace --archive=$PWD/${{ github.event.repository.name }}.zip --metadata-json=$PWD/.github/mktp-metadata.json --changelog="${{ github.event.release.body }}" --debug | ||
env: | ||
MARKETPLACE_API_KEY: ${{ secrets.MARKETPLACE_API_KEY }} |