Skip to content

Commit dd74fbb

Browse files
Add publish workflow
1 parent 89dbb72 commit dd74fbb

File tree

2 files changed

+44
-19
lines changed

2 files changed

+44
-19
lines changed

.github/publish.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '22'
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- name: Checkout github/workbench-template
21+
uses: actions/checkout@v3
22+
with:
23+
repository: github/workbench-template
24+
path: .
25+
token: ${{ secrets.RELEASE_GITHUB_PAT }}
26+
27+
- name: Set up Go
28+
uses: actions/setup-go@v4
29+
with:
30+
go-version: '1.21'
31+
32+
- name: Run build script
33+
env:
34+
RELEASE_GITHUB_PAT: ${{ secrets.RELEASE_GITHUB_PAT }}
35+
run: |
36+
chmod +x ./build/build-release.sh
37+
./build/build-release.sh
38+
39+
- name: Create Release and Upload Assets
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
files: ./spark-sdk-dist/*
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_PAT }}

0 commit comments

Comments
 (0)