Upload package to GitHub Releases #3
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: movabletype/mt-block-editor-example-plugins | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: "22" | |
| - name: Install libs | |
| run: sudo apt-get install --no-install-recommends -y zip | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Archive example plugins | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: examples | |
| path: | | |
| dist | |
| - name: Upload package to GitHub Releases | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 | |
| with: | |
| draft: true | |
| files: | | |
| dist/*.zip |