Skip to content

Commit

Permalink
ci: fix release please
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jul 3, 2024
1 parent 8603cc1 commit 36f81dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@ jobs:
- uses: googleapis/release-please-action@v4
id: release

draft:
name: draft
needs: release
runs-on: ubuntu-latest
steps:
- run: gh release edit ${{ needs.release.outputs.tag_name }} --draft=true --repo='elixir-tools/next-ls'

build:
needs: [release]
needs: [release, draft]
runs-on: macos-14
if: ${{ needs.release.outputs.release_created }}
env:
Expand Down Expand Up @@ -67,7 +74,7 @@ jobs:

nix-build:
name: build nix flakes and push to cachix
needs: [release]
needs: [release, draft]
if: ${{ needs.release.outputs.release_created }}
strategy:
matrix:
Expand All @@ -87,15 +94,15 @@ jobs:

publish:
name: publish
needs: [release, build]
needs: [release, draft, build]
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: gh release edit ${{ needs.release.outputs.tag_name }} --draft=false --repo='elixir-tools/next-ls'

homebrew:
needs: [release, publish]
needs: [release, draft, publish]
runs-on: ubuntu-latest
steps:
- name: Bump Homebrew formula
Expand Down
1 change: 0 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"release-type": "elixir",
"bump-minor-pre-major": true,
"include-component-in-tag": false,
"draft": true,
"extra-files": [
"package.nix"
]
Expand Down

0 comments on commit 36f81dc

Please sign in to comment.