diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa03755..7ad309d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,15 +46,11 @@ jobs: toolchain: stable - name: install app dependencies and build it run: pnpm install && pnpm --filter gui build - - name: Get current date - id: date - run: echo "date=$(date +'%s')" >> $GITHUB_OUTPUT - 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 - - run: echo ${{ steps.date.outputs.date }}_test build_tauri: needs: changes if: needs.changes.outputs.tauri == 'true' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 87f2ede..d426b62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -102,18 +102,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 = ""