From d9a32a4d2c16f35c6c7cdbf1a88fb6290ca53e13 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:28:23 -0700 Subject: [PATCH 01/17] test workflow file --- .github/workflows/test.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..03abf1e38 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,35 @@ +name: Test + +on: + push: + branches: + - nate/test-yaml + +jobs: + upload: + steps: + - name: Create a build artifact + run: echo "Hello, world!" > hello.txt + + - name: Create another + run: echo "Goodbye, world! > goodbye.txt" + + - name: Upload both artifacts + uses: actions/upload-artifact@v4 + with: + name: my-artifact + path: | + name: text-files + path: "*.txt" + + download: + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + path: artifacts-destination + pattern: "*.txt" + merge-multiple: true + + - name: List artifacts + run: ls && echo "---" && ls artifacts-destination From ad45e2e2d974a08bbd06b4c00376de08813a4331 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:29:33 -0700 Subject: [PATCH 02/17] fix --- .github/workflows/test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 03abf1e38..ebfa1f1cb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -7,6 +7,7 @@ on: jobs: upload: + runs-on: ubuntu-latest steps: - name: Create a build artifact run: echo "Hello, world!" > hello.txt @@ -23,6 +24,7 @@ jobs: path: "*.txt" download: + runs-on: ubuntu-latest steps: - name: Download artifacts uses: actions/download-artifact@v4 From d1132267e9d573ff4f73abe9b967430a8a6a79d5 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:30:04 -0700 Subject: [PATCH 03/17] dep --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ebfa1f1cb..596912809 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,6 +24,7 @@ jobs: path: "*.txt" download: + needs: upload runs-on: ubuntu-latest steps: - name: Download artifacts From a78b75e58c6e6c81bf864e5160275ba1e828b3eb Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:32:24 -0700 Subject: [PATCH 04/17] v3 --- .github/workflows/test.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 596912809..6bc9b5602 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,10 +18,8 @@ jobs: - name: Upload both artifacts uses: actions/upload-artifact@v4 with: - name: my-artifact - path: | - name: text-files - path: "*.txt" + name: text-files + path: "*.txt" download: needs: upload From 54a34f9dd38820460be43736d1845ffab0a8bad8 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:33:32 -0700 Subject: [PATCH 05/17] use name --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6bc9b5602..ce6b48ed6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -29,7 +29,7 @@ jobs: uses: actions/download-artifact@v4 with: path: artifacts-destination - pattern: "*.txt" + name: text-files merge-multiple: true - name: List artifacts From 20b1b043876382592ae505c38a77cbd6df4e39b2 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 11 Sep 2024 15:36:32 -0700 Subject: [PATCH 06/17] fix --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ce6b48ed6..073d9d0aa 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,7 +13,7 @@ jobs: run: echo "Hello, world!" > hello.txt - name: Create another - run: echo "Goodbye, world! > goodbye.txt" + run: echo "Goodbye, world!" > goodbye.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 From 0ed1f6a74b8bf8f7312667fc1c22eff7640de6ae Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:21:54 -0700 Subject: [PATCH 07/17] test ci --- .github/workflows/preview.yaml | 17 +++++++---------- .github/workflows/test.yaml | 16 ++++++++++++---- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index e30449f0f..09c787a5c 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -158,7 +158,7 @@ jobs: # 6. Upload the .vsix as an artifact - uses: actions/upload-artifact@v4 with: - name: ${{ env.target }} + name: ${{ env.target }}-vsix path: "extensions/vscode/*.vsix" release: @@ -177,21 +177,18 @@ jobs: git config --local user.name "GitHub Action" # Download the .vsix artifacts - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true - name: Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} files: | - alpine-x64/*.vsix - darwin-arm64/*.vsix - darwin-x64/*.vsix - linux-arm64/*.vsix - linux-armhf/*.vsix - linux-x64/*.vsix - win32-x64/*.vsix - win32-arm64/*.vsix + vsix-artifacts/*.vsix token: ${{ secrets.CI_GITHUB_TOKEN }} repository: continuedev/continue prerelease: true diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 073d9d0aa..a13886ca2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,13 +12,21 @@ jobs: - name: Create a build artifact run: echo "Hello, world!" > hello.txt - - name: Create another - run: echo "Goodbye, world!" > goodbye.txt + - name: Upload both artifacts + uses: actions/upload-artifact@v4 + with: + name: ${{ env.target }}-text + path: "*.txt" + + runs-on: macos-latest + steps: + - name: Create a build artifact + run: echo "Hello, world!" > hello.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 with: - name: text-files + name: ${{ env.target }}-text path: "*.txt" download: @@ -28,8 +36,8 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: + pattern: "*-vsix" path: artifacts-destination - name: text-files merge-multiple: true - name: List artifacts From f6b263c27efe1cbabe775f050f40df78196298f4 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:22:25 -0700 Subject: [PATCH 08/17] fix --- .github/workflows/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a13886ca2..3d3b8149c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,7 +17,8 @@ jobs: with: name: ${{ env.target }}-text path: "*.txt" - + + upload2: runs-on: macos-latest steps: - name: Create a build artifact From ed138cf97b33ad7eb3987aed7dc454da17fa8aa6 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:22:53 -0700 Subject: [PATCH 09/17] fix2 --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3d3b8149c..98bbb6b3f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -31,7 +31,7 @@ jobs: path: "*.txt" download: - needs: upload + needs: [upload, upload2] runs-on: ubuntu-latest steps: - name: Download artifacts From 0887d86d862e526eab0df467d8e22e2765223bb3 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:23:52 -0700 Subject: [PATCH 10/17] fix3 --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 98bbb6b3f..bbcd8468d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,7 +15,7 @@ jobs: - name: Upload both artifacts uses: actions/upload-artifact@v4 with: - name: ${{ env.target }}-text + name: ubuntu-text path: "*.txt" upload2: @@ -27,7 +27,7 @@ jobs: - name: Upload both artifacts uses: actions/upload-artifact@v4 with: - name: ${{ env.target }}-text + name: macos-text path: "*.txt" download: From 9c6a46fe0d3b090347c2f3c21d0abd135354551f Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:24:54 -0700 Subject: [PATCH 11/17] fix4 --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bbcd8468d..fc4139534 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,7 +37,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - pattern: "*-vsix" + pattern: "*-test" path: artifacts-destination merge-multiple: true From 880c7b877f7bf98ed9aa4ca82b424ea60d1b505c Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:25:34 -0700 Subject: [PATCH 12/17] fix5 --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fc4139534..3a3b2e162 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -37,7 +37,7 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - pattern: "*-test" + pattern: "*-text" path: artifacts-destination merge-multiple: true From 391fb1876a1e37a0229e26fc044c4e6e49f7e976 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:26:25 -0700 Subject: [PATCH 13/17] test --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3a3b2e162..e2eabf9a0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Create a build artifact - run: echo "Hello, world!" > hello.txt + run: echo "Hello, world!" > hello-ubuntu.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 @@ -22,7 +22,7 @@ jobs: runs-on: macos-latest steps: - name: Create a build artifact - run: echo "Hello, world!" > hello.txt + run: echo "Hello, world!" > hello-mac.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 From cb756c787eb21abc53c8dee784aa99de891f7c0e Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:28:28 -0700 Subject: [PATCH 14/17] test2 --- .github/workflows/test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e2eabf9a0..943d7622f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,25 +10,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Create a build artifact - run: echo "Hello, world!" > hello-ubuntu.txt + run: mkdir text && echo "Hello, world!" > text/hello-ubuntu.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 with: name: ubuntu-text - path: "*.txt" + path: "text/*.txt" upload2: runs-on: macos-latest steps: - name: Create a build artifact - run: echo "Hello, world!" > hello-mac.txt + run: mkdir text && echo "Hello, world!" > text/hello-mac.txt - name: Upload both artifacts uses: actions/upload-artifact@v4 with: name: macos-text - path: "*.txt" + path: "text/*.txt" download: needs: [upload, upload2] From d83a6ec4a7415fcd863628bf6ba7104f6799a412 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:34:30 -0700 Subject: [PATCH 15/17] update preview.yaml --- .github/workflows/preview.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 09c787a5c..dce25d627 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -213,13 +213,17 @@ jobs: run: git pull origin dev # 1. Download the artifacts - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true # 2. Publish the extension to VS Code Marketplace - name: Publish to VS Code Marketplace run: | cd extensions/vscode - npx vsce publish --pre-release --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix + npx vsce publish --pre-release --packagePath ../../vsix-artifacts/alpine-x64/*.vsix ../../vsix-artifacts/darwin-arm64/*.vsix ../../vsix-artifacts/darwin-x64/*.vsix ../../vsix-artifacts/linux-arm64/*.vsix ../../vsix-artifacts/linux-armhf/*.vsix ../../vsix-artifacts/linux-x64/*.vsix ../../vsix-artifacts/win32-x64/*.vsix ../../vsix-artifacts/win32-arm64/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} @@ -228,7 +232,7 @@ jobs: continue-on-error: true run: | cd extensions/vscode - npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix + npx ovsx publish --pre-release -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/alpine-x64/*.vsix ../../vsix-artifacts/darwin-arm64/*.vsix ../../vsix-artifacts/darwin-x64/*.vsix ../../vsix-artifacts/linux-arm64/*.vsix ../../vsix-artifacts/linux-armhf/*.vsix ../../vsix-artifacts/linux-x64/*.vsix ../../vsix-artifacts/win32-x64/*.vsix ../../vsix-artifacts/win32-arm64/*.vsix # 4. Update the package.json version and push changes # - name: Update version in package.json From cd86df6ba02eb4f46007103ed4677d14121b48ff Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:34:34 -0700 Subject: [PATCH 16/17] remove test.yaml --- .github/workflows/test.yaml | 45 ------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 943d7622f..000000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: Test - -on: - push: - branches: - - nate/test-yaml - -jobs: - upload: - runs-on: ubuntu-latest - steps: - - name: Create a build artifact - run: mkdir text && echo "Hello, world!" > text/hello-ubuntu.txt - - - name: Upload both artifacts - uses: actions/upload-artifact@v4 - with: - name: ubuntu-text - path: "text/*.txt" - - upload2: - runs-on: macos-latest - steps: - - name: Create a build artifact - run: mkdir text && echo "Hello, world!" > text/hello-mac.txt - - - name: Upload both artifacts - uses: actions/upload-artifact@v4 - with: - name: macos-text - path: "text/*.txt" - - download: - needs: [upload, upload2] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - pattern: "*-text" - path: artifacts-destination - merge-multiple: true - - - name: List artifacts - run: ls && echo "---" && ls artifacts-destination From 4498369465e951e87c395f09ebc4b9015796d0d4 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Sep 2024 15:36:17 -0700 Subject: [PATCH 17/17] update main.yaml --- .github/workflows/main.yaml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 60e82c412..db1af5506 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -163,7 +163,7 @@ jobs: # 6. Upload the .vsix as an artifact - uses: actions/upload-artifact@v4 with: - name: ${{ env.target }} + name: ${{ env.target }}-vsix path: "extensions/vscode/*.vsix" release: @@ -182,21 +182,18 @@ jobs: git config --local user.name "GitHub Action" # Download the .vsix artifacts - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true - name: Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} files: | - alpine-x64/*.vsix - darwin-arm64/*.vsix - darwin-x64/*.vsix - linux-arm64/*.vsix - linux-armhf/*.vsix - linux-x64/*.vsix - win32-x64/*.vsix - win32-arm64/*.vsix + vsix-artifacts/*.vsix token: ${{ secrets.CI_GITHUB_TOKEN }} repository: continuedev/continue @@ -220,13 +217,17 @@ jobs: run: git pull origin main # 1. Download the artifacts - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + pattern: "*-vsix" + path: vsix-artifacts + merge-multiple: true # 2. Publish the extension to VS Code Marketplace - name: Publish to VS Code Marketplace run: | cd extensions/vscode - npx vsce publish --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix + npx vsce publish --packagePath ../../vsix-artifacts/alpine-x64/*.vsix ../../vsix-artifacts/darwin-arm64/*.vsix ../../vsix-artifacts/darwin-x64/*.vsix ../../vsix-artifacts/linux-arm64/*.vsix ../../vsix-artifacts/linux-armhf/*.vsix ../../vsix-artifacts/linux-x64/*.vsix ../../vsix-artifacts/win32-x64/*.vsix ../../vsix-artifacts/win32-arm64/*.vsix env: VSCE_PAT: ${{ secrets.VSCE_TOKEN }} @@ -235,7 +236,7 @@ jobs: continue-on-error: true run: | cd extensions/vscode - npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix + npx ovsx publish -p ${{ secrets.VSX_REGISTRY_TOKEN }} --packagePath ../../vsix-artifacts/alpine-x64/*.vsix ../../vsix-artifacts/darwin-arm64/*.vsix ../../vsix-artifacts/darwin-x64/*.vsix ../../vsix-artifacts/linux-arm64/*.vsix ../../vsix-artifacts/linux-armhf/*.vsix ../../vsix-artifacts/linux-x64/*.vsix ../../vsix-artifacts/win32-x64/*.vsix ../../vsix-artifacts/win32-arm64/*.vsix # 4. Update the package.json version and push changes # - name: Update version in package.json