diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 638d7cc2d..75473ae2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,18 +7,24 @@ on: paths: - icons/**/*.svg + workflow_dispatch: + inputs: + version: + description: Version + required: true + permissions: id-token: write # Required for OIDC contents: write jobs: create-release: - if: github.repository == 'lucide-icons/lucide' && startsWith(github.event.head_commit.message, 'feat(icons)') + if: github.repository == 'lucide-icons/lucide' && startsWith(github.event.head_commit.message, 'feat(icons)') && github.event_name != 'workflow_dispatch' runs-on: ubuntu-latest outputs: VERSION: ${{ steps.new-version.outputs.NEW_VERSION }} - steps: + - uses: actions/checkout@v6 - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v6 @@ -69,3 +75,10 @@ jobs: secrets: inherit with: version: ${{ needs.create-release.outputs.VERSION }} + + dispatch-release: + if: github.event_name == 'workflow_dispatch' + uses: './.github/workflows/release.yml' + secrets: inherit + with: + version: ${{ inputs.version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b146f718..d21e61ee3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,6 @@ on: description: Version type: string - workflow_dispatch: - inputs: - version: - description: Version - required: true - permissions: id-token: write # Required for OIDC contents: write