Skip to content

Commit 4afabd4

Browse files
authored
Merge pull request #6121 from menloresearch/ci/update-generate-release-note
ci: update generate release note and jan docs release
2 parents 0bc1bf9 + 1563a41 commit 4afabd4

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

.github/workflows/jan-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
Preview URL: ${{ steps.deployCloudflarePages.outputs.url }}
7777
7878
- name: Publish to Cloudflare Pages Production
79-
if: (github.event_name == 'push' && github.ref == 'refs/heads/dev') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev')
79+
if: (github.event_name == 'push' && github.ref == 'refs/heads/dev') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/dev') || (github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/release/'))
8080
uses: cloudflare/pages-action@v1
8181
with:
8282
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

.github/workflows/jan-tauri-build.yaml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
name: "${{ env.VERSION }}"
3333
draft: true
3434
prerelease: false
35+
generate_release_notes: true
3536

3637
build-macos:
3738
uses: ./.github/workflows/template-tauri-build-macos.yml
@@ -118,28 +119,4 @@ jobs:
118119
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
119120
asset_path: ./latest.json
120121
asset_name: latest.json
121-
asset_content_type: text/json
122-
123-
update_release_draft:
124-
needs: [build-macos, build-windows-x64, build-linux-x64]
125-
permissions:
126-
# write permission is required to create a github release
127-
contents: write
128-
# write permission is required for autolabeler
129-
# otherwise, read permission is required at least
130-
pull-requests: write
131-
runs-on: ubuntu-latest
132-
steps:
133-
# (Optional) GitHub Enterprise requires GHE_HOST variable set
134-
#- name: Set GHE_HOST
135-
# run: |
136-
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
137-
138-
# Drafts your next Release notes as Pull Requests are merged into "master"
139-
- uses: release-drafter/release-drafter@v5
140-
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
141-
# with:
142-
# config-name: my-config.yml
143-
# disable-autolabeler: true
144-
env:
145-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
asset_content_type: text/json

0 commit comments

Comments
 (0)