Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
sonar:
name: Tests & SonarQube
# Solo ejecutar si la base del PR es realmente 'main'
if: github.base_ref == 'main'
uses: ./.github/workflows/sonar.yml
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
48 changes: 47 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,45 @@ jobs:
release/latest-linux.yml
retention-days: 5

build-macos:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Generate Prisma client
run: npm run prisma:generate

- name: Build application
run: npm run build

- name: Build macOS packages
run: npx electron-builder --mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: macos-packages
path: |
release/*.dmg
release/*.zip
release/latest-mac.yml
retention-days: 5

release:
needs: [build-windows, build-linux]
needs: [build-windows, build-linux, build-macos]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -102,6 +139,12 @@ jobs:
name: linux-packages
path: ./release

- name: Download macOS artifacts
uses: actions/download-artifact@v4
with:
name: macos-packages
path: ./release

- name: List release files
run: ls -la ./release

Expand All @@ -115,6 +158,9 @@ jobs:
release/*.AppImage
release/*.deb
release/latest-linux.yml
release/*.dmg
release/*.zip
release/latest-mac.yml
generate_release_notes: true
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-time-tracker",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.3",
"author": "altaskur",
"license": "GPL-3.0",
"type": "module",
Expand Down