v1.2.0: {name} filename placeholder + collision numbering #8
Workflow file for this run
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: release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*' | |
| env: | |
| PLUGIN_NAME: tropymd | |
| jobs: | |
| create-release: | |
| name: Create release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Resolve artifact name | |
| id: meta | |
| run: echo "artifact=${PLUGIN_NAME}-${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT" | |
| - name: Build install zip | |
| run: | | |
| mkdir "${{ steps.meta.outputs.artifact }}" | |
| cp index.js package.json icon.svg LICENSE README.md \ | |
| "${{ steps.meta.outputs.artifact }}/" | |
| zip -r "${{ steps.meta.outputs.artifact }}.zip" \ | |
| "${{ steps.meta.outputs.artifact }}" | |
| - name: Create release and upload zip | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| artifacts: ${{ steps.meta.outputs.artifact }}.zip | |
| prerelease: false | |
| generateReleaseNotes: true | |
| token: ${{ secrets.GITHUB_TOKEN }} |