Skip to content

Commit 9b98600

Browse files
committed
publish artifact with version number
1 parent 7de7471 commit 9b98600

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,18 @@ jobs:
8484
steps:
8585
- uses: actions/checkout@v4
8686
with:
87+
fetch-depth: 99
8788
path: src
8889
- uses: actions/download-artifact@v4
8990
with:
9091
path: artifacts
9192
- name: create package feed data
9293
run: ./src/create-package-feeds.sh --artifacts-directory artifacts --deb-feed-path artifacts/deb-feed.tar.gz --win-feed-path artifacts/win-feed.tar.gz
94+
- name: publish version artifact
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: version.txt
98+
path: artifacts/version.txt
9399
- name: publish deb package feed artifact
94100
uses: actions/upload-artifact@v4
95101
with:

create-package-feeds.sh

+8
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,13 @@ cp $_SCRIPT_DIR/install.ps1 "$winPackagesDir"
7777
# create archive of the entire thing
7878
tar -zcf $WIN_FEED_PATH -C "$destination/" win
7979

80+
#
81+
# version
82+
#
83+
pushd "$_SCRIPT_DIR/build"
84+
VERSION=$(pwsh ./make-version.ps1 -suffix beta)
85+
popd
86+
echo "$VERSION" | tee $ARTIFACTS_DIRECTORY/version.txt
87+
8088
# clean up
8189
rm -rf $destination

0 commit comments

Comments
 (0)