From 89dbb72817018bbed588512a43a8f3f356eb217c Mon Sep 17 00:00:00 2001 From: Chava Barboza Date: Tue, 6 May 2025 00:59:56 +0000 Subject: [PATCH 1/2] Add publish workflow --- .github/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/publish.yml diff --git a/.github/publish.yml b/.github/publish.yml new file mode 100644 index 0000000..c2fdaf4 --- /dev/null +++ b/.github/publish.yml @@ -0,0 +1,19 @@ +name: Publish Release + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' From eb8e2e2be5b08e5cb0b3a933ecceb959869505d9 Mon Sep 17 00:00:00 2001 From: Chava Barboza Date: Tue, 6 May 2025 01:01:53 +0000 Subject: [PATCH 2/2] Add publish workflow --- .github/publish.yml | 19 --------------- .github/workflows/publish.yml | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 19 deletions(-) delete mode 100644 .github/publish.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/publish.yml b/.github/publish.yml deleted file mode 100644 index c2fdaf4..0000000 --- a/.github/publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Publish Release - -on: - release: - types: [created] - workflow_dispatch: - -jobs: - build-and-publish: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..975c45e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,44 @@ +name: Publish Release + +on: + release: + types: [created] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + + - name: Checkout github/workbench-template + uses: actions/checkout@v3 + with: + repository: github/workbench-template + path: . + token: ${{ secrets.RELEASE_GITHUB_PAT }} + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Run build script + env: + RELEASE_GITHUB_PAT: ${{ secrets.RELEASE_GITHUB_PAT }} + run: | + chmod +x ./build/build-release.sh + ./build/build-release.sh + + - name: Create Release and Upload Assets + uses: softprops/action-gh-release@v1 + with: + files: ./spark-sdk-dist.zip + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_PAT }}