Skip to content

Commit

Permalink
build(ci): updated artefacts generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathabonfim59 committed Dec 20, 2024
1 parent e8a931c commit 837dbfd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/editai-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ jobs:
build: true
wails-build-webview2: "embed"
go-version: ^1.22
- name: Rename artifact
run: |
VERSION=${GITHUB_REF#refs/tags/v}
mv build/bin/editai "build/bin/editai-${VERSION}-linux-amd64"
- name: Upload Release Artifact
uses: softprops/action-gh-release@v1
with:
files: "build/bin/editai"
name: "editai-${{ github.ref_name }}-linux-amd64"
files: "build/bin/editai-*-linux-amd64"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -59,11 +62,19 @@ jobs:
package: true
build: true
go-version: ^1.22
- name: Upload Release Artifact
- name: Package macOS artifacts
run: |
VERSION=${GITHUB_REF#refs/tags/v}
cd build/bin
mv editai.app "editai-${VERSION}-mac.app"
zip -r "editai-${VERSION}-mac.app.zip" "editai-${VERSION}-mac.app"
mv editai.pkg "editai-${VERSION}-mac.pkg"
- name: Upload Release Artifacts
uses: softprops/action-gh-release@v1
with:
files: "build/bin/editai"
name: "editai-${{ github.ref_name }}-darwin-universal"
files: |
build/bin/editai-*-mac.app.zip
build/bin/editai-*-mac.pkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -76,18 +87,26 @@ jobs:
submodules: recursive
- uses: ./.github/actions/wails
with:
build-name: editai.exe
build-name: editai
build-platform: windows/amd64
wails-version: "v2.9.2"
package: true
build: true
nsis: true
wails-build-webview2: "embed"
go-version: ^1.22
- name: Upload Release Artifact
- name: Rename artifacts
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/v}
cd build/bin
mv editai.exe "editai-${VERSION}-windows-amd64-portable.exe"
mv editai-installer.exe "editai-${VERSION}-windows-amd64-installer.exe"
- name: Upload Release Artifacts
uses: softprops/action-gh-release@v1
with:
files: "build/bin/editai.exe"
name: "editai-${{ github.ref_name }}-windows-amd64"
files: |
build/bin/editai-*-windows-amd64-portable.exe
build/bin/editai-*-windows-amd64-installer.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion wails.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"info": {
"companyName": "EditAI",
"productName": "EditAI",
"productVersion": "0.1.4",
"productVersion": "0.1.5",
"copyright": "Copyright 2024 © - EditAI",
"comments": "An AI-powered code editor"
}
Expand Down

0 comments on commit 837dbfd

Please sign in to comment.