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
46 changes: 43 additions & 3 deletions .github/workflows/static.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: "publish"
name: "build"

on: pull_request

jobs:
publish-tauri:
permissions:
contents: write
pull-requests: write
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -46,12 +47,51 @@ jobs:
run: yarn install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/tauri-action@v0
id: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: "App v__VERSION__"
tagName: release-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: "Outliner v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}

- name: Upload linux assets
uses: actions/upload-artifact@v4
if: matrix.platform == 'ubuntu-22.04'
with:
name: pr-${{github.event.pull_request.number }}-${{ matrix.platform }}
path: |
src-tauri/target/release/bundle/deb/*.deb
src-tauri/target/release/bundle/rpm/*.rpm
src-tauri/target/release/bundle/appimage/*.AppImage

- name: Upload windows assets
uses: actions/upload-artifact@v4
if: matrix.platform == 'windows-latest'
with:
name: pr-${{github.event.pull_request.number }}-${{ matrix.platform }}
path: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*.exe

- name: Upload macos assets
uses: actions/upload-artifact@v4
if: matrix.platform == 'macos-latest'
with:
name: pr-${{github.event.pull_request.number }}-${{ matrix.platform }}
path: |
src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app

- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-tag: auto-build-comment-${{ matrix.platform }}
message: |
Build for ${{ matrix.platform }} is done.
Uploaded Assets:
${{ steps.tauri.outputs.artifactPaths }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "outline-browser",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"dev": "npx serve public",
"webpack-local": "ENVIRONMENT=development npx webpack -w",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[package]
name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
license = ""
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
}
}
},
"productName": "outliner",
"productName": "Outliner",
"mainBinaryName": "outliner",
"version": "0.0.1",
"version": "../package.json",
"identifier": "com.outliner.xangelo",
"plugins": {},
"app": {
Expand All @@ -60,4 +60,4 @@
"csp": null
}
}
}
}
Loading