Skip to content

Commit 986f596

Browse files
committed
fix(common): add version file for buildpack package
1 parent 90ec4a3 commit 986f596

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

.github/workflows/pipeline.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,6 @@ jobs:
5858
- name: Package buildpack
5959
run: buildpack-packager build -cached -any-stack
6060

61-
- name: Upload packaged buildpack
62-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: packaged-buildpack
66-
path: "*.zip"
67-
if-no-files-found: error
68-
6961
release-buildpack:
7062
name: Release Buildpack
7163
runs-on: ubuntu-latest
@@ -83,18 +75,21 @@ jobs:
8375
with:
8476
fetch-depth: 0
8577

86-
- name: Download packaged buildpack
87-
uses: actions/download-artifact@v4
78+
- name: Set up Go
79+
uses: actions/setup-go@v5
8880
with:
89-
name: packaged-buildpack
81+
go-version: "1.22"
82+
83+
- name: Install buildpack-packager
84+
run: go install github.com/cloudfoundry/libbuildpack/packager/buildpack-packager@latest
9085

9186
- name: Set up Node.js
9287
uses: actions/setup-node@v4
9388
with:
9489
node-version: "22"
9590

9691
- name: Install semantic-release
97-
run: npm install --no-save semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/github conventional-changelog-conventionalcommits
92+
run: npm install --no-save semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/github @semantic-release/exec conventional-changelog-conventionalcommits
9893

9994
- name: Publish semantic release
10095
env:

.releaserc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
"preset": "conventionalcommits"
1717
}
1818
],
19+
[
20+
"@semantic-release/exec",
21+
{
22+
"prepareCmd": "printf '%s\\n' <%= nextRelease.version %> > VERSION && buildpack-packager build -cached -any-stack"
23+
}
24+
],
1925
[
2026
"@semantic-release/github",
2127
{

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.0

manifest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
language: python-uv
33

44
include_files:
5+
- VERSION
56
- bin/compile
67
- bin/detect
78
- bin/release

0 commit comments

Comments
 (0)