Another attempt at version

This commit is contained in:
2024-09-26 19:58:06 -04:00
parent beef7a97e2
commit b93ddcae59

View File

@@ -12,6 +12,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get Version
id: get-version
shell: bash
run: |
echo "version=$((${{ github.run_number }}+${{ github.run_attempt }}))" >> $GITHUB_ENV
echo $version
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
@@ -25,4 +32,4 @@ jobs:
dotnet tool install -g vpk
vpk download github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow
vpk pack -u MyUniqueIdentifier -v ${{ steps.get-version.outputs.version }} -p publish
vpk upload github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow --publish --releaseName "WorldClockStatusWindow 1.0.${{ github.event.release.tag_name }}" --tag v1.0.${{ github.event.release.tag_name }}
vpk upload github --repoUrl https://github.com/ckaczor/WorldClockStatusWindow --publish --releaseName "WorldClockStatusWindow ${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }}