From 81600416a98525ff7a62293d836802e5142ecf8e Mon Sep 17 00:00:00 2001 From: Sam Lijin Date: Thu, 5 Dec 2024 19:20:14 -0800 Subject: [PATCH] should all work now --- .../build-vscode-release.reusable.yaml | 37 +------------------ .github/workflows/release.yml | 28 +++++++------- 2 files changed, 15 insertions(+), 50 deletions(-) diff --git a/.github/workflows/build-vscode-release.reusable.yaml b/.github/workflows/build-vscode-release.reusable.yaml index c89ce7573..a1a7b1999 100644 --- a/.github/workflows/build-vscode-release.reusable.yaml +++ b/.github/workflows/build-vscode-release.reusable.yaml @@ -74,39 +74,4 @@ jobs: with: name: vscode-playground path: typescript/vscode-ext/packages/web-panel/dist - if-no-files-found: error - - publish: - if: false - needs: [build] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: jdx/mise-action@v2 - - name: Install Dependencies - run: pnpm install --frozen-lockfile - working-directory: typescript/ - - uses: actions/download-artifact@v4 - with: - name: baml-vscode-vsix - path: typescript/vscode-ext/packages/out/ - # run-id: 12190929601 - # github-token: ${{ secrets.SAM_GITHUB_PAT }} - - run: | - cd typescript/vscode-ext/packages - set -x - ls -la ./ - ls -la out/ - pnpm help - - name: Publish to open-vsx - run: | - cd typescript/vscode-ext/packages - pnpm ovsx publish --packagePath ./out/*.vsix - env: - OVSX_PAT: ${{ secrets.OVSX_PAT }} - - name: Publish to VSCode Marketplace - run: | - cd typescript/vscode-ext/packages - pnpm vsce publish --packagePath ./out/*.vsix - env: - VSCE_PAT: ${{ secrets.VSCODE_PAT }} \ No newline at end of file + if-no-files-found: error \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 554cf416a..a8e2572e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ on: tags: - "test-release/*.*" - "*.*" - branches: [sam/vsc-release2] + branches: [] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -26,27 +26,27 @@ permissions: id-token: write jobs: - # build-python-release: - # uses: ./.github/workflows/build-python-release.reusable.yaml + build-python-release: + uses: ./.github/workflows/build-python-release.reusable.yaml - # build-ruby-release: - # uses: ./.github/workflows/build-ruby-release.reusable.yaml + build-ruby-release: + uses: ./.github/workflows/build-ruby-release.reusable.yaml - # build-typescript-release: - # uses: ./.github/workflows/build-typescript-release.reusable.yaml + build-typescript-release: + uses: ./.github/workflows/build-typescript-release.reusable.yaml - # build-vscode-release: - # uses: ./.github/workflows/build-vscode-release.reusable.yaml + build-vscode-release: + uses: ./.github/workflows/build-vscode-release.reusable.yaml # placeholder fan-in step all-builds: name: Assert all builds passed runs-on: ubuntu-latest - needs: [] - # - build-python-release - # - build-ruby-release - # - build-typescript-release - # - build-vscode-release + needs: + - build-python-release + - build-ruby-release + - build-typescript-release + - build-vscode-release steps: - run: echo "::do-nothing::" >/dev/null