Skip to content

Commit

Permalink
ci: update release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 14, 2024
1 parent 0b1432c commit 00af3ae
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,11 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: elixir
package-name: next_ls
bump-minor-pre-major: true
extra-files: |
flake.nix
draft:
needs: release
if: ${{ needs.release.outputs.release_created }}
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- run: gh release edit ${{ needs.release.outputs.tag_name }} --draft=true --repo='elixir-tools/next-ls'

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

nix-build:
name: build nix flakes and push to cachix
needs: [release, draft]
needs: [release]
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14]
Expand Down
Empty file added .release-please-manifest.json
Empty file.
15 changes: 15 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"package-name": "next_ls",
"release-type": "elixir",
"bump-minor-pre-major": true,
"include-component-in-tag": false,
"draft": true,
"extra-files": [
"flake.nix"
]
}
}
}

0 comments on commit 00af3ae

Please sign in to comment.