Skip to content

Commit

Permalink
Update marketplace-upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin authored Oct 5, 2022
1 parent e216eea commit 6c0ab7a
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/marketplace-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,5 @@ name: Upload to HumHub Marketplace

jobs:
build:
name: Build and Upload Module Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{ github.event.repository.name }}

- name: Build project
run: |
zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }}/
# - name: Install Composer
# run: cd ${{ github.event.repository.name }}; composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi

# - name: Install NPM
# run: cd ${{ github.event.repository.name }}; npm install

- name: Upload Package to HumHub Marketplace
run: |
curl --fail \
-F "key=${{secrets.MARKETPLACE_API_KEY}}" \
-F "ModuleVersionUpload[zipFile]=@${{ github.event.repository.name }}.zip" \
https://api.humhub.com/v1/marketplace/upload?moduleId=${{ github.event.repository.name }}
uses: humhub-contrib/actions/.github/workflows/module-marketplace-upload.yml@main
secrets: inherit

0 comments on commit 6c0ab7a

Please sign in to comment.