This commit is contained in:
parent
8847f3fcf6
commit
832de038ca
8 changed files with 526 additions and 9 deletions
|
|
@ -11,6 +11,25 @@ jobs:
|
|||
with:
|
||||
node-version: 24
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Update version from tag
|
||||
run: |
|
||||
# Extract version from tag (e.g. v1.2.3 -> 1.2.3)
|
||||
VERSION=${GITHUB_REF_NAME#v}
|
||||
echo "Bumping version to $VERSION"
|
||||
npm version $VERSION --no-git-tag-version
|
||||
|
||||
# Configure Git
|
||||
git config user.name "Forgejo Actions"
|
||||
git config user.email "actions@noreply.flegr.me"
|
||||
|
||||
# Commit and push back to main if version changed
|
||||
if [ -n "$(git status --porcelain package.json)" ]; then
|
||||
git add package.json package-lock.json
|
||||
git commit -m "chore: bump version to $VERSION [skip ci]"
|
||||
git push origin HEAD:main
|
||||
fi
|
||||
- run: npm ci
|
||||
- run: npm run dist:linux
|
||||
- name: Build Windows installer with 32-bit Wine prefix
|
||||
|
|
@ -36,6 +55,9 @@ jobs:
|
|||
copy_first '*.AppImage' 'chattz-linux.AppImage'
|
||||
copy_first '*.exe' 'chattz-windows.exe'
|
||||
copy_first '*.msi' 'chattz-windows.msi'
|
||||
# Metadata files for electron-updater
|
||||
copy_first 'latest-linux.yml' 'latest-linux.yml'
|
||||
copy_first 'latest.yml' 'latest.yml'
|
||||
- name: Cache Cargo registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue