Skip to content

Commit

Permalink
chore: action
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed Feb 15, 2023
1 parent 9cd30c1 commit 5ec9bb5
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 62 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,16 @@ jobs:
publish_dir: ./updater
# force_orphan: true

# publish-winget:
# # Action can only be run on windows
# runs-on: windows-latest
# needs: [create-release, build-tauri]
# steps:
# - uses: vedantmgoyal2009/winget-releaser@v1
# with:
# identifier: lencx.ChatGPT
# token: ${{ secrets.WINGET_TOKEN }}
# version: ${{ env.version }}
- name: Query version number
run: echo "version=${GITHUB_REF:11}" >> $GITHUB_ENV

publish-winget:
# Action can only be run on windows
runs-on: windows-latest
needs: [build-chatgpt, release-chatgpt]
steps:
- uses: vedantmgoyal2009/winget-releaser@v1
with:
identifier: lencx.ChatGPT
token: ${{ secrets.WINGET_TOKEN }}
version: ${{ github.event.release.tag_name }}
90 changes: 39 additions & 51 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/src/scripts/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function addActionsButtons(actionsArea, TryAgainButton) {
}

async function exportMarkdown() {
const content = Array.from(document.querySelectorAll("main >div>div>div>div")).map(i => {
const content = Array.from(document.querySelectorAll('main .items-center>div')).map(i => {
let j = i.cloneNode(true);
if (/dark\:bg-gray-800/.test(i.getAttribute('class'))) {
j.innerHTML = `<blockquote>${i.innerHTML}</blockquote>`;
Expand Down

0 comments on commit 5ec9bb5

Please sign in to comment.