From 9a9e749713f6c3a8f2cb1b89481076fe5d82e69b Mon Sep 17 00:00:00 2001 From: William So Date: Tue, 4 Jul 2023 09:19:45 +0800 Subject: [PATCH 1/3] Use the GitHub CLI directly in `latest.yml` Signed-off-by: William So --- .github/workflows/latest.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index 1799dc2e..71e06b03 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -17,16 +17,8 @@ jobs: npm pack --pack-destination=.github for file in .github/*.tgz; do mv "$file" "${file%-*}.tgz"; done - if: ${{github.ref == 'refs/tags/latest'}} - uses: softprops/action-gh-release@v1 - with: - append_body: true - fail_on_unmatched_files: true - files: | - .github/*.tgz - main.js - manifest.json - styles.css - prerelease: true + run: | + gh release upload latest .github/*.tgz main.js manifest.json styles.css --clobber build-pnpm: runs-on: ubuntu-latest steps: From 1786e9f3c0a4d7a5ecebb72e1b78d01e16b7026c Mon Sep 17 00:00:00 2001 From: William So Date: Tue, 4 Jul 2023 09:26:35 +0800 Subject: [PATCH 2/3] Fix missing token in `latest.yml` Signed-off-by: William So --- .github/workflows/latest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index 71e06b03..f2e8e465 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -17,6 +17,8 @@ jobs: npm pack --pack-destination=.github for file in .github/*.tgz; do mv "$file" "${file%-*}.tgz"; done - if: ${{github.ref == 'refs/tags/latest'}} + env: + GH_TOKEN: ${{github.token}} run: | gh release upload latest .github/*.tgz main.js manifest.json styles.css --clobber build-pnpm: From ef2c4ba3fe95b7623ae97600230f353b1e4c4d88 Mon Sep 17 00:00:00 2001 From: William So Date: Tue, 4 Jul 2023 09:30:03 +0800 Subject: [PATCH 3/3] Update submodules Signed-off-by: William So --- build/obsidian-plugin-library | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/obsidian-plugin-library b/build/obsidian-plugin-library index de139732..aa53b782 160000 --- a/build/obsidian-plugin-library +++ b/build/obsidian-plugin-library @@ -1 +1 @@ -Subproject commit de139732e84c40aab23e4f9f07fb2c69e8940e20 +Subproject commit aa53b7823e758bd8fc7b62fce98a93d0207a42e5