Skip to content

Commit 7f6c874

Browse files
committed
test github actions
1 parent b14aba0 commit 7f6c874

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
name: release
2+
23
on:
34
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
5+
tags:
6+
- "*.*.*"
7+
98
jobs:
10-
test:
11-
name: Test
9+
release:
10+
name: Release
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v4
15-
- uses: ./.github/actions/setup
16-
- run: bun install && bun run test
17-
build:
18-
name: Build
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v4
22-
- uses: ./.github/actions/setup
23-
- run: bun install && bun run build && ls ${{ github.workspace }}
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup
16+
uses: ./.github/actions/setup
17+
- name: Install dependencies
18+
run: bun install
19+
- name: Build
20+
run: bun run build
21+
- name: Create release
22+
uses: softprops/action-gh-release@v2
23+
if: github.ref_type == 'tag'
24+
with:
25+
generate_release_notes: true
26+
files: |
27+
dist/bitbucket-mcp-server-darwin-arm64.tar.gzz
28+
dist/bitbucket-mcp-server-darwin-x64.tar.gz
29+
dist/bitbucket-mcp-server-linux-arm64.tar.gz
30+
dist/bitbucket-mcp-server-linux-x64.tar.gz
31+
dist/bitbucket-mcp-server-windows-x64.tar.gz

0 commit comments

Comments
 (0)