From 258cf85601fd111833316d9756bf094fba2f798c Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com> Date: Fri, 18 Apr 2025 04:10:54 +0800 Subject: [PATCH] dev(ci): restrict patterns to release (#1682) --- .github/workflows/build-vsc-assets.yml | 6 +++--- .github/workflows/build-vscode.yml | 6 +++--- .github/workflows/ci.yml | 3 ++- .github/workflows/publish-vscode.yml | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-vsc-assets.yml b/.github/workflows/build-vsc-assets.yml index 50ff7560f..c95567547 100644 --- a/.github/workflows/build-vsc-assets.yml +++ b/.github/workflows/build-vsc-assets.yml @@ -73,12 +73,12 @@ jobs: - name: Pre-bundle tinymist vscode extension uses: actions/upload-artifact@v4 with: - name: tinymist-vscode-out + name: vscode-artifacts-tinymist path: editors/vscode/out - name: Pre-bundle tinymist vscode extension (L10n) uses: actions/upload-artifact@v4 with: - name: tinymist-vscode-l10n + name: vscode-artifacts-tinymist-l10n path: | editors/vscode/l10n/**/* editors/vscode/package.nls.json @@ -86,6 +86,6 @@ jobs: - name: Pre-bundle typst-preview vscode extension uses: actions/upload-artifact@v4 with: - name: typst-preview-vscode-out + name: vscode-artifacts-typst-preview path: contrib/typst-preview/editors/vscode/out diff --git a/.github/workflows/build-vscode.yml b/.github/workflows/build-vscode.yml index b01f22a28..1fa5096ff 100644 --- a/.github/workflows/build-vscode.yml +++ b/.github/workflows/build-vscode.yml @@ -89,19 +89,19 @@ jobs: - name: Download VSC Assets uses: actions/download-artifact@v4 with: - name: tinymist-vscode-out + name: vscode-artifacts-tinymist path: editors/vscode/out if: (fromJson(env.isRelease) || fromJson(env.isNightly)) - name: Download VSC Assets (L10n) uses: actions/download-artifact@v4 with: - name: tinymist-vscode-l10n + name: vscode-artifacts-tinymist-l10n path: editors/vscode if: (fromJson(env.isRelease) || fromJson(env.isNightly)) - name: Download VSC Assets (Preview) uses: actions/download-artifact@v4 with: - name: typst-preview-vscode-out + name: vscode-artifacts-typst-preview path: contrib/typst-preview/editors/vscode/out if: (fromJson(env.isRelease) || fromJson(env.isNightly)) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9163f5666..a213184e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,11 +70,12 @@ jobs: cargo run -p tinymist -- completion elvish > completions/elvish/lib/tinymist.elv cargo run -p tinymist -- completion nushell > completions/nushell/vendor/autoload/tinymist.nu cargo run -p tinymist -- completion powershell > completions/powershell/tinymist.ps1 + tar -czvf tinymist-completions.tar.gz completions - name: upload completions uses: actions/upload-artifact@v4 with: name: tinymist-completion-scripts - path: completions + path: tinymist-completions.tar.gz - name: Test tinymist run: cargo test --workspace -- --skip=e2e diff --git a/.github/workflows/publish-vscode.yml b/.github/workflows/publish-vscode.yml index 17a2a139f..e1c4e76d2 100644 --- a/.github/workflows/publish-vscode.yml +++ b/.github/workflows/publish-vscode.yml @@ -20,6 +20,7 @@ jobs: - uses: actions/download-artifact@v4 with: path: artifacts + pattern: '{tinymist,typst-preview}-*' - name: Display structure of downloaded files run: ls -R artifacts - uses: ncipollo/release-action@v1