diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3029a68..940ec87e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/create-package-feeds.sh b/create-package-feeds.sh index 832d9e71..31cc91d8 100755 --- a/create-package-feeds.sh +++ b/create-package-feeds.sh @@ -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