Skip to content

Commit

Permalink
[ops] - updated console deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
emilbon99 committed Jun 13, 2024
1 parent 4610607 commit 84d2bda
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 49 deletions.
34 changes: 13 additions & 21 deletions .github/workflows/deploy.console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
setup:
runs-on: ubuntu-latest
outputs:
PURE_VERSION: ${{ steps.version.outputs.PURE_VERSION }}
VERSION: ${{ steps.version.outputs.VERSION }}
changed: ${{ steps.filter.outputs.changed }}
steps:
Expand All @@ -29,8 +30,10 @@ jobs:
run: |
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
echo "PURE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
else
echo "VERSION=$(node -p "require('./package.json').version")-rc" >> $GITHUB_OUTPUT
echo "PURE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
fi
- name: Diff Changes
Expand Down Expand Up @@ -137,17 +140,6 @@ jobs:
restore-keys: |
${{ runner.os }}-turbo-
- name: Install Dependencies on Ubuntu
if: matrix.platform == 'ubuntu-latest'
run: >-
sudo apt-get update &&
sudo apt-get install -y
libgtk-3-dev
libayatana-appindicator3-dev
libwebkit2gtk-4.0-dev
webkit2gtk-driver
xvfb
- name: Install Dependencies
run: pnpm i

Expand Down Expand Up @@ -175,18 +167,18 @@ jobs:
run: |
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/macos/Synnax.app.tar.gz
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/macos/Synnax.app.tar.gz.sig
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/dmg/Synnax_${{ needs.setup.outputs.VERSION }}_x64.dmg
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/dmg/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64.dmg
- name: Upload Windows Release Asset
if: github.event_name == 'push' && matrix.platform == 'windows-latest'
run: |
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.VERSION }}_x64_en-US.msi
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.VERSION }}_x64_en-US.msi.zip
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.VERSION }}_x64_en-US.msi.zip.sig
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.VERSION }}_x64-setup.exe
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.VERSION }}_x64-setup.nsis.zip
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.VERSION }}_x64-setup.nsis.zip.sig
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64_en-US.msi
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64_en-US.msi.zip
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/msi/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64_en-US.msi.zip.sig
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64-setup.exe
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64-setup.nsis.zip
gh release upload --clobber console-v${{ needs.setup.outputs.VERSION }} ./console/src-tauri/target/release/bundle/nsis/Synnax_${{ needs.setup.outputs.PURE_VERSION }}_x64-setup.nsis.zip.sig
publish-release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -228,7 +220,7 @@ jobs:
script: |
const fs = await import("fs");
const version = process.env.VERSION;
const version = process.env.PURE_VERSION;
const {
repo: { repo, owner },
} = context;
Expand All @@ -237,13 +229,13 @@ jobs:
const darwinURL = baseURL + "Synnax.app.tar.gz";
const darwinSig = await github.request(`GET ${darwinURL}.sig`);
const windowsURL = baseURL + `Synnax_${packageVersion}_x64_en-US.msi.zip`;
const windowsURL = baseURL + `Synnax_${version}_x64_en-US.msi.zip`;
const windowsSig = await github.request(`GET ${windowsURL}.sig`);
const pub_date = new Date().toISOString().replace(/\.\d{3}Z$/, "Z");
const ecd = new TextDecoder();
const data = {
version: `v${packageVersion}`,
version: `v${version}`,
notes: "Synnax Update",
pub_date,
platforms: {
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.synnax.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Synnax Deploy
on:
push:
branches:
- rc
- main
# push:
# branches:
# - rc
# - main
pull_request:
branches:
- rc
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.aspen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.cesium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test-python:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.drift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.freighter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
permissions:
contents: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.pluto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.synnax.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ on:
pull_request:
branches:
- rc
push:
branches:
- rc
# push:
# branches:
# - rc
workflow_dispatch:
jobs:
test-go:
Expand Down

0 comments on commit 84d2bda

Please sign in to comment.