name: Release
on:
push:
branches: [ main, 0.8.x ] workflow_dispatch:
permissions:
contents: write checks: read
actions: read
jobs:
wait-for-workflows:
runs-on: ubuntu-latest
timeout-minutes: 45
if: github.event_name == 'push' steps:
- name: Checkout
uses: actions/checkout@v4
- uses: int128/wait-for-workflows-action@v1.43.0
with:
token: ${{ secrets.PAT_GLOBAL }}
filter-workflow-events: push
sha: ${{ github.sha }}
release:
name: Release
runs-on: ubuntu-latest
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/0.8.x')
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
ref: ${{ github.ref_name }}
fetch-depth: 0
- name: install npm
uses: actions/setup-node@v4
with:
node-version: '20.19.2'
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/exec
@semantic-release/github
env:
GITHUB_TOKEN: ${{ secrets.PAT_GLOBAL }}
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}