Skip to content

Commit

Permalink
reinstate crabnebula draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 4, 2024
1 parent fd57406 commit 5bef67a
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
main();
- name: create draft release
uses: crabnebula-dev/cloud-release@v0
with:
command: release draft ${{ env.CN_APPLICATION }} ${{ steps.read_version.outputs.value }} --framework tauri
api-key: ${{ secrets.CN_API_KEY }}

- name: Create GitHub Release
id: create_release
if: ${{ steps.create_tag.outputs.tag_existed != 'true' }}
Expand Down Expand Up @@ -176,18 +182,18 @@ jobs:
asset_name: Cap_${{ needs.draft.outputs.version }}_${{ matrix.settings.target }}.dmg
asset_content_type: application/octet-stream

publish:
needs: [draft, build]
runs-on: ubuntu-latest
steps:
- name: Publish Release
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ needs.draft.outputs.release_id }},
draft: false
})
# publish:
# needs: [draft, build]
# runs-on: ubuntu-latest
# steps:
# - name: Publish Release
# uses: actions/github-script@v7
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# github.rest.repos.updateRelease({
# owner: context.repo.owner,
# repo: context.repo.repo,
# release_id: ${{ needs.draft.outputs.release_id }},
# draft: false
# })

1 comment on commit 5bef67a

@vercel
Copy link

@vercel vercel bot commented on 5bef67a Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.