Skip to content

Commit

Permalink
fixed version generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Jan 29, 2025
1 parent dacb120 commit 4417736
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,17 @@ jobs:
VortexEngine/VortexEngine/VortexLib/VortexLib.wasm
key: VortexLib-${{ github.sha }}

# checkout actual repo for sake of version generation
- name: Checkout Main Repository
uses: actions/checkout@v3
with:
path: 'lightshow.lol'
fetch-depth: 0 # Fetch all history for tags and commits

# Determine version from Git tags and generate version.js
- name: Generate Version
run: |
cd VortexEngine # Move into the repository directory
cd lightshow.lol # Move into the repository directory
# Get the latest tag (ensures it's a proper version number)
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
# Count commits since the tag
Expand Down

0 comments on commit 4417736

Please sign in to comment.