Skip to content

Commit

Permalink
chore: add release-please to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Oct 13, 2023
1 parent 37a5173 commit a556d48
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,18 @@ jobs:
shell: bash
continue-on-error: true # empty steps.tag.outputs.tag will inform the next step

# This step will only handle the creation of the release draft, the "Build binaries with electron-builder" step
# will attach binaries to that release draft
- name: Run release-please github-release
if: contains(github.ref, 'refs/tags/') && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
uses: google-github-actions/[email protected]
with:
command: github-release
release-type: node
changelog-notes-type: github
draft-pull-request: true
draft: true

- name: Build binaries with electron-builder
uses: paneron/action-electron-builder@14b133702d1b2e9749912051c43ed62b4afe56c8 # v1.8.1
with:
Expand Down Expand Up @@ -242,3 +254,20 @@ jobs:

- name: Show Cache
run: du -sh ${{ github.workspace }}/.cache/ && ls -l ${{ github.workspace }}/.cache/

# This Job will handle the creation of the "release-please" PR
create-release-please-pr:
runs-on: ubuntu-latest
needs: [test, build]
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
steps:
- uses: google-github-actions/[email protected]
with:
command: release-pr
changelog-notes-type: github
release-type: node
plugins: |
@ipfs-shipyard/[email protected]
draft-pull-request: true
draft: true
# --token=$GH_TOKEN --plugin '@ipfs-shipyard/release-please-ipfs-plugin' --repo-url=ipfs/ipfs-desktop --target-branch=release-please/bootstrap/default --trace --debug --release-as=v0.31.1 --latest-tag-version=v0.28.0 --draft-pull-request

0 comments on commit a556d48

Please sign in to comment.