Skip to content

Commit

Permalink
Merge pull request #3967 from tloncorp/promote-9-30
Browse files Browse the repository at this point in the history
ops: promote 6.4.0
  • Loading branch information
arthyn authored Oct 1, 2024
2 parents ddbd581 + 3060f05 commit 09eb9cf
Show file tree
Hide file tree
Showing 262 changed files with 8,620 additions and 7,454 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- recursive: true
args: [--frozen-lockfile]
- name: Build packages
run: pnpm build:all

- name: Run Lint
run: pnpm -r lint

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build packages
run: pnpm build:all
- working-directory: ./apps/tlon-web
run: pnpm build
- uses: actions/upload-artifact@v3
Expand Down
61 changes: 32 additions & 29 deletions .github/workflows/deploy-ephemeral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Deploy Groups (ephemeral)
on:
push:
branches:
- 'do/ephemeral-moons'
- "do/ephemeral-moons"

#pull_request:

jobs:
build-frontend:
runs-on: ubuntu-latest
name: 'Build Frontend'
name: "Build Frontend"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,37 +26,39 @@ jobs:
- recursive: true
args: [--frozen-lockfile]
- name: Build packages
run: pnpm build:all

- working-directory: ./apps/tlon-web
run:
pnpm build
run: pnpm build

- uses: actions/upload-artifact@v4
with:
name: 'ui-dist'
path: apps/tlon-web/dist
name: "ui-dist"
path: apps/tlon-web/dist

glob:
runs-on: ubuntu-latest
name: 'Make a glob'
name: "Make a glob"
needs: build-frontend
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: 'ui-dist'
name: "ui-dist"
path: apps/tlon-web/dist
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
- name: 'glob'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "glob"
uses: ./.github/actions/glob
with:
folder: 'apps/tlon-web/dist/*'
docket: 'desk/desk.docket-0'
folder: "apps/tlon-web/dist/*"
docket: "desk/desk.docket-0"
- name: Commit and Push Glob
run: |
git config --global user.name github-actions
Expand All @@ -74,12 +76,12 @@ jobs:
needs: glob
steps:
- uses: actions/checkout@v4
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- id: create_moon
name: Create Moon
run: |
Expand All @@ -88,24 +90,25 @@ jobs:
SSH_SEC_KEY: ${{ secrets.GCP_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.GCP_SSH_PUB_KEY }}


deploy:
needs: create_moon
runs-on: ubuntu-latest
name: "Release to ~binnec-dozzod-marnus (canary)"
steps:
- uses: actions/checkout@v4
- id: 'auth'
uses: 'google-github-actions/auth@v1'
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: '${{ secrets.GCP_SERVICE_KEY }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
credentials_json: "${{ secrets.GCP_SERVICE_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- id: deploy
name: Deploy
run:
./.github/helpers/deploy.sh tloncorp/tlon-apps groups ${{ needs.build_test_images.outputs.moon_name }} us-central1-a mainnet-tlon-other-2d
./.github/helpers/deploy.sh tloncorp/tlon-apps groups ${{
needs.build_test_images.outputs.moon_name }} us-central1-a
mainnet-tlon-other-2d
env:
SSH_SEC_KEY: ${{ secrets.GCP_SSH_SEC_KEY }}
SSH_PUB_KEY: ${{ secrets.GCP_SSH_PUB_KEY }}
URBIT_REPO_TAG: ${{ vars.URBIT_REPO_TAG }}
URBIT_REPO_TAG: ${{ vars.URBIT_REPO_TAG }}
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build packages
run: pnpm build:all
- working-directory: ./apps/tlon-web
run: pnpm build
- uses: actions/upload-artifact@v3
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/mobile-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ jobs:
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm build:all
- name: Create build vars
id: vars
run: |
echo "profile=${{ inputs.profile || 'preview' }}" >> $GITHUB_OUTPUT
- name: Push update for selected platforms
working-directory: ./apps/tlon-mobile
run: eas update --auto --profile ${{ steps.vars.outputs.profile }} --platform ${{ inputs.platform || 'all' }} --non-interactive
run:
eas update --auto --profile ${{ steps.vars.outputs.profile }}
--platform ${{ inputs.platform || 'all' }} --non-interactive
env:
NOTIFY_PROVIDER: "${{ steps.vars.outputs.profile == 'preview' && 'binnec-dozzod-marnus' || 'rivfur-livmet' }}"
NOTIFY_SERVICE: "${{ steps.vars.outputs.profile == 'preview' && 'tlon-preview-release' || 'groups-native' }}"
NOTIFY_PROVIDER:
"${{ steps.vars.outputs.profile == 'preview' &&
'binnec-dozzod-marnus' || 'rivfur-livmet' }}"
NOTIFY_SERVICE:
"${{ steps.vars.outputs.profile == 'preview' &&
'tlon-preview-release' || 'groups-native' }}"
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 0 additions & 2 deletions .husky/pre-push

This file was deleted.

160 changes: 85 additions & 75 deletions apps/tlon-mobile/cosmos.imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,43 @@
import { RendererConfig, UserModuleWrappers } from 'react-cosmos-core';

import * as fixture0 from './src/App.fixture';
import * as fixture47 from './src/fixtures/ActionSheet/AddGalleryPostSheet.fixture';
import * as fixture46 from './src/fixtures/ActionSheet/AttachmentSheet.fixture';
import * as fixture45 from './src/fixtures/ActionSheet/ChannelSortActionsSheet.fixture';
import * as fixture44 from './src/fixtures/ActionSheet/CreateChannelSheet.fixture';
import * as fixture43 from './src/fixtures/ActionSheet/DeleteSheet.fixture';
import * as fixture42 from './src/fixtures/ActionSheet/EditSectionNameSheet.fixture';
import * as fixture41 from './src/fixtures/ActionSheet/GenericActionSheet.fixture';
import * as fixture40 from './src/fixtures/ActionSheet/GroupJoinRequestSheet.fixture';
import * as fixture39 from './src/fixtures/ActionSheet/GroupPreviewSheet.fixture';
import * as fixture38 from './src/fixtures/ActionSheet/ProfileSheet.fixture';
import * as fixture37 from './src/fixtures/ActionSheet/SendPostRetrySheet.fixture';
import * as fixture33 from './src/fixtures/AttachmentPreviewList.fixture';
import * as fixture32 from './src/fixtures/AudioEmbed.fixture';
import * as fixture31 from './src/fixtures/Avatar.fixture';
import * as fixture30 from './src/fixtures/BlockSectionList.fixture';
import * as fixture29 from './src/fixtures/Button.fixture';
import * as fixture28 from './src/fixtures/Channel.fixture';
import * as fixture27 from './src/fixtures/ChannelDivider.fixture';
import * as fixture26 from './src/fixtures/ChannelHeader.fixture';
import * as fixture25 from './src/fixtures/ChannelSwitcherSheet.fixture';
import * as fixture24 from './src/fixtures/ChatMessage.fixture';
import * as fixture23 from './src/fixtures/ContactList.fixture';
import * as fixture36 from './src/fixtures/DetailView/ChatDetailView.fixture';
import * as fixture35 from './src/fixtures/DetailView/GalleryDetailView.fixture';
import * as fixture34 from './src/fixtures/DetailView/NotebookDetailView.fixture';
import * as fixture22 from './src/fixtures/Form.fixture';
import * as fixture21 from './src/fixtures/GalleryPost.fixture';
import * as fixture20 from './src/fixtures/GroupList.fixture';
import * as fixture19 from './src/fixtures/GroupListItem.fixture';
import * as fixture18 from './src/fixtures/ImageViewer.fixture';
import * as fixture17 from './src/fixtures/Input.fixture';
import * as fixture16 from './src/fixtures/InputToolbar.fixture';
import * as fixture52 from './src/fixtures/ActionSheet/AddGalleryPostSheet.fixture';
import * as fixture51 from './src/fixtures/ActionSheet/AttachmentSheet.fixture';
import * as fixture50 from './src/fixtures/ActionSheet/ChannelSortActionsSheet.fixture';
import * as fixture49 from './src/fixtures/ActionSheet/CreateChannelSheet.fixture';
import * as fixture48 from './src/fixtures/ActionSheet/DeleteSheet.fixture';
import * as fixture47 from './src/fixtures/ActionSheet/EditSectionNameSheet.fixture';
import * as fixture46 from './src/fixtures/ActionSheet/GenericActionSheet.fixture';
import * as fixture45 from './src/fixtures/ActionSheet/GroupJoinRequestSheet.fixture';
import * as fixture44 from './src/fixtures/ActionSheet/GroupPreviewSheet.fixture';
import * as fixture43 from './src/fixtures/ActionSheet/ProfileSheet.fixture';
import * as fixture42 from './src/fixtures/ActionSheet/SendPostRetrySheet.fixture';
import * as fixture38 from './src/fixtures/Activity.fixture';
import * as fixture37 from './src/fixtures/AddGroupSheet.fixture';
import * as fixture36 from './src/fixtures/AttachmentPreviewList.fixture';
import * as fixture35 from './src/fixtures/AudioEmbed.fixture';
import * as fixture34 from './src/fixtures/Avatar.fixture';
import * as fixture33 from './src/fixtures/BlockSectionList.fixture';
import * as fixture32 from './src/fixtures/Button.fixture';
import * as fixture31 from './src/fixtures/Channel.fixture';
import * as fixture30 from './src/fixtures/ChannelDivider.fixture';
import * as fixture29 from './src/fixtures/ChannelHeader.fixture';
import * as fixture28 from './src/fixtures/ChannelSwitcherSheet.fixture';
import * as fixture27 from './src/fixtures/ChatMessage.fixture';
import * as fixture26 from './src/fixtures/ContactList.fixture';
import * as fixture25 from './src/fixtures/CreateGroup.fixture';
import * as fixture41 from './src/fixtures/DetailView/ChatDetailView.fixture';
import * as fixture40 from './src/fixtures/DetailView/GalleryDetailView.fixture';
import * as fixture39 from './src/fixtures/DetailView/NotebookDetailView.fixture';
import * as fixture24 from './src/fixtures/FindGroups.fixture';
import * as fixture23 from './src/fixtures/Form.fixture';
import * as fixture22 from './src/fixtures/GalleryPost.fixture';
import * as fixture21 from './src/fixtures/GroupList.fixture';
import * as fixture20 from './src/fixtures/GroupListItem.fixture';
import * as fixture19 from './src/fixtures/ImageViewer.fixture';
import * as fixture18 from './src/fixtures/Input.fixture';
import * as fixture17 from './src/fixtures/InputToolbar.fixture';
import * as fixture16 from './src/fixtures/InviteUsersSheet.fixture';
import * as fixture15 from './src/fixtures/MessageActions.fixture';
import * as fixture14 from './src/fixtures/MessageInput.fixture';
import * as fixture13 from './src/fixtures/MetaEditorScreen.fixture';
Expand All @@ -43,29 +48,29 @@ import * as fixture11 from './src/fixtures/PostReference.fixture';
import * as fixture10 from './src/fixtures/PostScreen.fixture';
import * as fixture9 from './src/fixtures/ProfileBlock.fixture';
import * as fixture8 from './src/fixtures/ProfileSheet.fixture';
import * as fixture7 from './src/fixtures/ProfileWidget.fixture';
import * as fixture6 from './src/fixtures/ReferenceSkeleton.fixture';
import * as fixture5 from './src/fixtures/ScreenHeader.fixture';
import * as fixture4 from './src/fixtures/SearchBar.fixture';
import * as fixture3 from './src/fixtures/Text.fixture';
import * as fixture7 from './src/fixtures/ReferenceSkeleton.fixture';
import * as fixture6 from './src/fixtures/ScreenHeader.fixture';
import * as fixture5 from './src/fixtures/SearchBar.fixture';
import * as fixture4 from './src/fixtures/Text.fixture';
import * as fixture3 from './src/fixtures/UserProfileScreen.fixture';
import * as fixture2 from './src/fixtures/VideoEmbed.fixture';
import * as fixture1 from './src/fixtures/ViewReactionsSheet.fixture';
import * as decorator0 from './src/fixtures/cosmos.decorator';

export const rendererConfig: RendererConfig = {
playgroundUrl: 'http://localhost:5001',
playgroundUrl: 'http://localhost:5000',
rendererUrl: null,
};

const fixtures = {
'src/App.fixture.tsx': { module: fixture0 },
'src/fixtures/ViewReactionsSheet.fixture.tsx': { module: fixture1 },
'src/fixtures/VideoEmbed.fixture.tsx': { module: fixture2 },
'src/fixtures/Text.fixture.tsx': { module: fixture3 },
'src/fixtures/SearchBar.fixture.tsx': { module: fixture4 },
'src/fixtures/ScreenHeader.fixture.tsx': { module: fixture5 },
'src/fixtures/ReferenceSkeleton.fixture.tsx': { module: fixture6 },
'src/fixtures/ProfileWidget.fixture.tsx': { module: fixture7 },
'src/fixtures/UserProfileScreen.fixture.tsx': { module: fixture3 },
'src/fixtures/Text.fixture.tsx': { module: fixture4 },
'src/fixtures/SearchBar.fixture.tsx': { module: fixture5 },
'src/fixtures/ScreenHeader.fixture.tsx': { module: fixture6 },
'src/fixtures/ReferenceSkeleton.fixture.tsx': { module: fixture7 },
'src/fixtures/ProfileSheet.fixture.tsx': { module: fixture8 },
'src/fixtures/ProfileBlock.fixture.tsx': { module: fixture9 },
'src/fixtures/PostScreen.fixture.tsx': { module: fixture10 },
Expand All @@ -74,57 +79,62 @@ const fixtures = {
'src/fixtures/MetaEditorScreen.fixture.tsx': { module: fixture13 },
'src/fixtures/MessageInput.fixture.tsx': { module: fixture14 },
'src/fixtures/MessageActions.fixture.tsx': { module: fixture15 },
'src/fixtures/InputToolbar.fixture.tsx': { module: fixture16 },
'src/fixtures/Input.fixture.tsx': { module: fixture17 },
'src/fixtures/ImageViewer.fixture.tsx': { module: fixture18 },
'src/fixtures/GroupListItem.fixture.tsx': { module: fixture19 },
'src/fixtures/GroupList.fixture.tsx': { module: fixture20 },
'src/fixtures/GalleryPost.fixture.tsx': { module: fixture21 },
'src/fixtures/Form.fixture.tsx': { module: fixture22 },
'src/fixtures/ContactList.fixture.tsx': { module: fixture23 },
'src/fixtures/ChatMessage.fixture.tsx': { module: fixture24 },
'src/fixtures/ChannelSwitcherSheet.fixture.tsx': { module: fixture25 },
'src/fixtures/ChannelHeader.fixture.tsx': { module: fixture26 },
'src/fixtures/ChannelDivider.fixture.tsx': { module: fixture27 },
'src/fixtures/Channel.fixture.tsx': { module: fixture28 },
'src/fixtures/Button.fixture.tsx': { module: fixture29 },
'src/fixtures/BlockSectionList.fixture.tsx': { module: fixture30 },
'src/fixtures/Avatar.fixture.tsx': { module: fixture31 },
'src/fixtures/AudioEmbed.fixture.tsx': { module: fixture32 },
'src/fixtures/AttachmentPreviewList.fixture.tsx': { module: fixture33 },
'src/fixtures/InviteUsersSheet.fixture.tsx': { module: fixture16 },
'src/fixtures/InputToolbar.fixture.tsx': { module: fixture17 },
'src/fixtures/Input.fixture.tsx': { module: fixture18 },
'src/fixtures/ImageViewer.fixture.tsx': { module: fixture19 },
'src/fixtures/GroupListItem.fixture.tsx': { module: fixture20 },
'src/fixtures/GroupList.fixture.tsx': { module: fixture21 },
'src/fixtures/GalleryPost.fixture.tsx': { module: fixture22 },
'src/fixtures/Form.fixture.tsx': { module: fixture23 },
'src/fixtures/FindGroups.fixture.tsx': { module: fixture24 },
'src/fixtures/CreateGroup.fixture.tsx': { module: fixture25 },
'src/fixtures/ContactList.fixture.tsx': { module: fixture26 },
'src/fixtures/ChatMessage.fixture.tsx': { module: fixture27 },
'src/fixtures/ChannelSwitcherSheet.fixture.tsx': { module: fixture28 },
'src/fixtures/ChannelHeader.fixture.tsx': { module: fixture29 },
'src/fixtures/ChannelDivider.fixture.tsx': { module: fixture30 },
'src/fixtures/Channel.fixture.tsx': { module: fixture31 },
'src/fixtures/Button.fixture.tsx': { module: fixture32 },
'src/fixtures/BlockSectionList.fixture.tsx': { module: fixture33 },
'src/fixtures/Avatar.fixture.tsx': { module: fixture34 },
'src/fixtures/AudioEmbed.fixture.tsx': { module: fixture35 },
'src/fixtures/AttachmentPreviewList.fixture.tsx': { module: fixture36 },
'src/fixtures/AddGroupSheet.fixture.tsx': { module: fixture37 },
'src/fixtures/Activity.fixture.tsx': { module: fixture38 },
'src/fixtures/DetailView/NotebookDetailView.fixture.tsx': {
module: fixture34,
module: fixture39,
},
'src/fixtures/DetailView/GalleryDetailView.fixture.tsx': {
module: fixture35,
module: fixture40,
},
'src/fixtures/DetailView/ChatDetailView.fixture.tsx': { module: fixture36 },
'src/fixtures/DetailView/ChatDetailView.fixture.tsx': { module: fixture41 },
'src/fixtures/ActionSheet/SendPostRetrySheet.fixture.tsx': {
module: fixture37,
module: fixture42,
},
'src/fixtures/ActionSheet/ProfileSheet.fixture.tsx': { module: fixture38 },
'src/fixtures/ActionSheet/ProfileSheet.fixture.tsx': { module: fixture43 },
'src/fixtures/ActionSheet/GroupPreviewSheet.fixture.tsx': {
module: fixture39,
module: fixture44,
},
'src/fixtures/ActionSheet/GroupJoinRequestSheet.fixture.tsx': {
module: fixture40,
module: fixture45,
},
'src/fixtures/ActionSheet/GenericActionSheet.fixture.tsx': {
module: fixture41,
module: fixture46,
},
'src/fixtures/ActionSheet/EditSectionNameSheet.fixture.tsx': {
module: fixture42,
module: fixture47,
},
'src/fixtures/ActionSheet/DeleteSheet.fixture.tsx': { module: fixture43 },
'src/fixtures/ActionSheet/DeleteSheet.fixture.tsx': { module: fixture48 },
'src/fixtures/ActionSheet/CreateChannelSheet.fixture.tsx': {
module: fixture44,
module: fixture49,
},
'src/fixtures/ActionSheet/ChannelSortActionsSheet.fixture.tsx': {
module: fixture45,
module: fixture50,
},
'src/fixtures/ActionSheet/AttachmentSheet.fixture.tsx': { module: fixture46 },
'src/fixtures/ActionSheet/AttachmentSheet.fixture.tsx': { module: fixture51 },
'src/fixtures/ActionSheet/AddGalleryPostSheet.fixture.tsx': {
module: fixture47,
module: fixture52,
},
};

Expand Down
Loading

0 comments on commit 09eb9cf

Please sign in to comment.