mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
Merge pull request #20 from teaxyz/bugfix-date-prefix-prod
fix date prefix for prod builds
This commit is contained in:
commit
29e11f5863
4 changed files with 20 additions and 14 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -46,7 +46,11 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- name: install app dependencies and build it
|
- name: install app dependencies and build it
|
||||||
run: pnpm install && pnpm --filter gui build
|
run: pnpm install && pnpm --filter gui build
|
||||||
|
- uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-1
|
||||||
build_tauri:
|
build_tauri:
|
||||||
needs: changes
|
needs: changes
|
||||||
if: needs.changes.outputs.tauri == 'true'
|
if: needs.changes.outputs.tauri == 'true'
|
||||||
|
@ -82,6 +86,7 @@ jobs:
|
||||||
# The prefix cache key, this can be changed to start a new cache manually.
|
# The prefix cache key, this can be changed to start a new cache manually.
|
||||||
# default: "v0-rust"
|
# default: "v0-rust"
|
||||||
prefix-key: ${{ matrix.platform }}
|
prefix-key: ${{ matrix.platform }}
|
||||||
|
shared-key: ci
|
||||||
cache-targets: false
|
cache-targets: false
|
||||||
- name: install app dependencies
|
- name: install app dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
@ -81,6 +81,7 @@ jobs:
|
||||||
# The prefix cache key, this can be changed to start a new cache manually.
|
# The prefix cache key, this can be changed to start a new cache manually.
|
||||||
# default: "v0-rust"
|
# default: "v0-rust"
|
||||||
prefix-key: ${{ matrix.platform }}
|
prefix-key: ${{ matrix.platform }}
|
||||||
|
shared-key: prod
|
||||||
cache-targets: false
|
cache-targets: false
|
||||||
- name: install dependencies (ubuntu only)
|
- name: install dependencies (ubuntu only)
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform == 'ubuntu-latest'
|
||||||
|
@ -102,18 +103,18 @@ jobs:
|
||||||
- name: test build tauri
|
- name: test build tauri
|
||||||
run: pnpm --filter gui tauri build
|
run: pnpm --filter gui tauri build
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current unix ts - seconds
|
||||||
id: date
|
id: date
|
||||||
run: echo "date=date::$(date +'%Y-%m-%dT%H:%M:%S')" >> >> $GITHUB_OUTPUT
|
run: echo "unix_seconds=$(date +'%s')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: mac-os cp package images from prod to gui bucket
|
- name: mac-os cp package images from prod to gui bucket
|
||||||
if: matrix.platform == 'macos-latest'
|
if: matrix.platform == 'macos-latest'
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp ./packages/gui/src-tauri/target/release/bundle/dmg/gui_0.1.0_x64.dmg \
|
aws s3 cp ./packages/gui/src-tauri/target/release/bundle/dmg/gui_0.1.0_x64.dmg \
|
||||||
s3://preview.gui.tea.xyz/release/gui_${{ steps.date.outputs.date }}.dmg
|
s3://preview.gui.tea.xyz/release/gui_${{ steps.date.outputs.unix_seconds }}.dmg
|
||||||
|
|
||||||
- name: ubuntu cp package images from prod to gui bucket
|
- name: ubuntu cp package images from prod to gui bucket
|
||||||
if: matrix.platform == 'ubuntu-latest'
|
if: matrix.platform == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp ./packages/gui/src-tauri/target/release/bundle/deb/gui_0.1.0_amd64.deb \
|
aws s3 cp ./packages/gui/src-tauri/target/release/bundle/deb/gui_0.1.0_amd64.deb \
|
||||||
s3://preview.gui.tea.xyz/release/gui_${{ steps.date.outputs.date }}.deb
|
s3://preview.gui.tea.xyz/release/gui_${{ steps.date.outputs.unix_seconds }}.deb
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "app"
|
name = "app"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "A Tauri App"
|
description = "A tea.xyz app"
|
||||||
authors = ["you"]
|
authors = ["you"]
|
||||||
license = ""
|
license = ""
|
||||||
repository = ""
|
repository = ""
|
||||||
|
|
|
@ -8,17 +8,17 @@ html {
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "pp-neue-machina";
|
font-family: "pp-neue-machina";
|
||||||
src: url("../static/fonts/PPNeueMachina-InktrapLight.woff");
|
src: url("../static/fonts/PPNeueMachina-InktrapLight.woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "sono";
|
font-family: "sono";
|
||||||
src: url("../static/fonts/Sono-Light.woff2");
|
src: url("../static/fonts/Sono-Light.woff2");
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer base {
|
@layer base {
|
||||||
html {
|
html {
|
||||||
font-family: sono, sans-serif;
|
font-family: sono, sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue