Skip to content

Commit

Permalink
publish artifact with version number
Browse files Browse the repository at this point in the history
  • Loading branch information
brettfo committed Sep 7, 2024
1 parent fd95d73 commit ead3b5b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,18 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 99
path: src
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: create package feed data
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
- name: publish version artifact
uses: actions/upload-artifact@v4
with:
name: version.txt
path: artifacts/version.txt
- name: publish deb package feed artifact
uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions create-package-feeds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,13 @@ cp $_SCRIPT_DIR/install.ps1 "$winPackagesDir"
# create archive of the entire thing
tar -zcf $WIN_FEED_PATH -C "$destination/" win

#
# version
#
pushd "$_SCRIPT_DIR/build"
VERSION=$(pwsh ./make-version.ps1 -suffix beta)
popd
echo "$VERSION" | tee $ARTIFACTS_DIRECTORY/version.txt

# clean up
rm -rf $destination

0 comments on commit ead3b5b

Please sign in to comment.