Repository navigation
Enhance plugin.json with detailed review test cases and publication i… #4
This file contains hidden or 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
| name: Package plugin | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| package: | |
| name: Create plugin archive | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Create ZIP archive | |
| env: | |
| ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ github.sha }}.zip | |
| run: | | |
| mkdir -p dist | |
| git archive --format=zip --output="dist/${ARCHIVE_NAME}" HEAD | |
| - name: Upload ZIP archive | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ github.event.repository.name }}-${{ github.sha }} | |
| path: dist/*.zip | |
| if-no-files-found: error | |
| archive: false | |
| retention-days: 30 |