Bump version to 0.2.0 #2
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*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read version from manifest | |
| id: version | |
| run: | | |
| VERSION=$(jq -r '.version' extension/manifest.json) | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Verify tag matches manifest version | |
| run: | | |
| TAG_VERSION="${GITHUB_REF_NAME#v}" | |
| MANIFEST_VERSION="${{ steps.version.outputs.version }}" | |
| if [ "$TAG_VERSION" != "$MANIFEST_VERSION" ]; then | |
| echo "::error::Tag $TAG_VERSION does not match manifest version $MANIFEST_VERSION" | |
| exit 1 | |
| fi | |
| - name: Package extension | |
| run: | | |
| cd extension | |
| zip -r ../postghost-ext-${{ steps.version.outputs.version }}.zip . -x '.*' | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: postghost-ext-${{ steps.version.outputs.version }}.zip | |
| generate_release_notes: true |