diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cbad7f..152395b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,11 @@ jobs: toolchain: stable - name: install app dependencies and build it 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: needs: changes 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. # default: "v0-rust" prefix-key: ${{ matrix.platform }} + shared-key: ci cache-targets: false - name: install app dependencies run: pnpm install diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe86c55..0b2ecea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,6 +81,7 @@ jobs: # The prefix cache key, this can be changed to start a new cache manually. # default: "v0-rust" prefix-key: ${{ matrix.platform }} + shared-key: prod cache-targets: false - name: install dependencies (ubuntu only) if: matrix.platform == 'ubuntu-latest' @@ -102,18 +103,18 @@ jobs: - name: test build tauri run: pnpm --filter gui tauri build - - name: Get current date + - name: Get current unix ts - seconds 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 if: matrix.platform == 'macos-latest' run: | 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 if: matrix.platform == 'ubuntu-latest' run: | 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 \ No newline at end of file + s3://preview.gui.tea.xyz/release/gui_${{ steps.date.outputs.unix_seconds }}.deb \ No newline at end of file diff --git a/packages/gui/src-tauri/Cargo.toml b/packages/gui/src-tauri/Cargo.toml index de06055..c236fde 100644 --- a/packages/gui/src-tauri/Cargo.toml +++ b/packages/gui/src-tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "app" version = "0.1.0" -description = "A Tauri App" +description = "A tea.xyz app" authors = ["you"] license = "" repository = "" diff --git a/packages/gui/src/app.css b/packages/gui/src/app.css index aabc518..a529a89 100644 --- a/packages/gui/src/app.css +++ b/packages/gui/src/app.css @@ -8,17 +8,17 @@ html { } @font-face { - font-family: "pp-neue-machina"; - src: url("../static/fonts/PPNeueMachina-InktrapLight.woff"); + font-family: "pp-neue-machina"; + src: url("../static/fonts/PPNeueMachina-InktrapLight.woff"); } @font-face { - font-family: "sono"; - src: url("../static/fonts/Sono-Light.woff2"); + font-family: "sono"; + src: url("../static/fonts/Sono-Light.woff2"); } @layer base { - html { - font-family: sono, sans-serif; - } - } \ No newline at end of file + html { + font-family: sono, sans-serif; + } +} \ No newline at end of file