Merge pull request #9 from RaaLabs/variable_queries_field_filter #20
This file contains 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 plugin archives | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
ci: | |
name: Release | |
runs-on: ubuntu-latest | |
env: | |
RELEASE: ${{ github.event_name == 'push' && contains('main,master', github.ref_name) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: mathieudutour/[email protected] | |
name: Calculate next version and create tag on GitHub | |
id: tag | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
release_branches: 'main,master' | |
dry_run: ${{ env.RELEASE != 'true' }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Build all plugins | |
run: yarn workspaces run build | |
- name: Package all plugins | |
run: | | |
mkdir release && cd dist && for PLUGIN in * ; do | |
zip -r ../release/$PLUGIN-${{ steps.tag.outputs.new_version }}.zip $PLUGIN | |
done | |
- name: Make GitHub Release | |
if: ${{ env.RELEASE == 'true' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create ${{ steps.tag.outputs.new_tag }} ./release/*.zip --target=${{ github.sha }} --title="${{ steps.tag.outputs.new_tag }}" --notes="${{ steps.tag.outputs.changelog }}" |