-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,11 +12,6 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -36,7 +31,7 @@ jobs: | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
with: | ||
releaseId: ${{ steps.get_release.outputs.upload_url }} | ||
releaseId: ${{ github.event.release.upload_url }} | ||
- name: Get app version (windows) | ||
run: | | ||
$json = (Get-Content "src-tauri\tauri.conf.json" -Raw) | ConvertFrom-Json | ||
|
@@ -71,11 +66,6 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -99,10 +89,10 @@ jobs: | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
with: | ||
releaseId: ${{ steps.get_release.outputs.upload_url }} | ||
releaseId: ${{ github.event.release.upload_url }} | ||
- name: Get app version | ||
id: vars | ||
run: echo ::set-output name=tag::$(jq .package.version src-tauri/tauri.conf.json | tr -d '"') | ||
run: echo "tag=$(jq .package.version src-tauri/tauri.conf.json | tr -d '"')" >> $GITHUB_OUTPUT | ||
- name: Move deb | ||
run: mv "src-tauri/target/release/bundle/deb/cinny_${{ steps.vars.outputs.tag }}_amd64.deb" "src-tauri/target/release/bundle/deb/Cinny_desktop-x86_64.deb" | ||
- name: Move AppImage | ||
|
@@ -128,11 +118,6 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
submodules: true | ||
- name: Get release | ||
id: get_release | ||
uses: bruceadams/get-release@74c3d60f5a28f358ccf241a00c9021ea16f0569f | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup node | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -154,11 +139,11 @@ jobs: | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | ||
NODE_OPTIONS: "--max_old_space_size=4096" | ||
with: | ||
releaseId: ${{ steps.get_release.outputs.upload_url }} | ||
releaseId: ${{ github.event.release.upload_url }} | ||
args: "--target universal-apple-darwin" | ||
- name: Get app version | ||
id: vars | ||
run: echo ::set-output name=tag::$(jq .package.version src-tauri/tauri.conf.json | tr -d '"') | ||
run: echo "tag=$(jq .package.version src-tauri/tauri.conf.json | tr -d '"')" >> $GITHUB_OUTPUT | ||
- name: Move dmg | ||
run: mv "src-tauri/target/universal-apple-darwin/release/bundle/dmg/Cinny_${{ steps.vars.outputs.tag }}_universal.dmg" "src-tauri/target/universal-apple-darwin/release/bundle/dmg/Cinny_desktop-universal.dmg" | ||
- name: Move app.tar.gz | ||
|
@@ -186,4 +171,4 @@ jobs: | |
- name: Run release.json | ||
run: npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |