Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 1passowrd cli to eas-build yml #131

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ on:
required: false
type: string
description: Set bun version
env_template_file:
type: string
description: The Path to the .env template file
required: true
secrets:
EXPO_TOKEN:
description: The Expo token to use for publishing
Expand All @@ -96,6 +100,9 @@ on:
DISCORD_WEBHOOK:
description: The Discord Webhook to use for notifications
required: false
OP_SERVICE_ACCOUNT_TOKEN:
description: The 1Password service account token
required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -120,6 +127,21 @@ jobs:
- uses: actions/checkout@v4
if: ${{ !inputs.checkout_ref }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Den här ska nog inte bort :)


- name: Install 1Password CLI
uses: 1password/install-cli-action@v1
if: ${{ inputs.env_template_file }}

- name: Load secret
uses: 1password/load-secrets-action/configure@v2
if: ${{ inputs.env_template_file }}
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OP_SERVICE_ACCOUNT_TOKEN behöver specas under secrets


- name: Build .env.production
run: op inject -i ${{ inputs.env_template_file }}.tpl -o ${{ inputs.env_template_file }}
if: ${{ inputs.env_template_file }}
working-directory: ${{ inputs.working_directory }}

- uses: actions/checkout@v4
if: ${{ inputs.checkout_ref }}
with:
Expand Down Expand Up @@ -172,7 +194,7 @@ jobs:
eas-version: latest
packager: ${{ inputs.package_manager }}
expo-cache: true # optional

- name: Get Hash
if: ${{ !inputs.always_run }}
run: echo "HASH=`jq -r '.expo.${{ inputs.platform }}.runtimeVersion' app.json`" >> $GITHUB_ENV
Expand Down Expand Up @@ -262,4 +284,4 @@ jobs:
url: ${{ env.BUILD_URL }}

- uses: rtCamp/action-slack-notify@v2
if: ${{ failure() && env.SLACK_WEBHOOK }}
if: ${{ failure() && env.SLACK_WEBHOOK }}
4 changes: 1 addition & 3 deletions packages/push-apple/graphql/schema.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type Scalars = {
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
/** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
JSONObject: { input: any; output: any; }
};

Expand Down Expand Up @@ -73,7 +72,6 @@ export type MutationRegisterAppleUpdateLiveActivityPushTokenArgs = {
activityId: Scalars['ID']['input'];
appBundleId: Scalars['String']['input'];
isSandbox?: InputMaybe<Scalars['Boolean']['input']>;
liveActivityAttributes: Scalars['JSONObject']['input'];
liveActivityType: Scalars['String']['input'];
token: Scalars['String']['input'];
};
Expand Down Expand Up @@ -218,7 +216,7 @@ export type MutationResolvers<ContextType = Zemble.GraphQLContext, ParentType ex
appleLiveActivityStateUpdated?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationAppleLiveActivityStateUpdatedArgs, 'activityId' | 'liveActivityType' | 'state'>>;
registerApplePushToken?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRegisterApplePushTokenArgs, 'appBundleId' | 'platform' | 'token'>>;
registerAppleStartLiveActivityPushToken?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRegisterAppleStartLiveActivityPushTokenArgs, 'appBundleId' | 'token'>>;
registerAppleUpdateLiveActivityPushToken?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRegisterAppleUpdateLiveActivityPushTokenArgs, 'activityId' | 'appBundleId' | 'liveActivityAttributes' | 'liveActivityType' | 'token'>>;
registerAppleUpdateLiveActivityPushToken?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRegisterAppleUpdateLiveActivityPushTokenArgs, 'activityId' | 'appBundleId' | 'liveActivityType' | 'token'>>;
sendPushNotification?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationSendPushNotificationArgs, 'body' | 'pushToken'>>;
sendSilentPushNotification?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationSendSilentPushNotificationArgs, 'data' | 'pushToken'>>;
startLiveActivity?: Resolver<ResolversTypes['StartLiveActivityResponse'], ParentType, ContextType, RequireFields<MutationStartLiveActivityArgs, 'data' | 'liveActivityType' | 'pushToken'>>;
Expand Down
39 changes: 0 additions & 39 deletions packages/push-expo/graphql/schema.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export enum ExpoPushPlatform {

export type Mutation = {
readonly __typename?: 'Mutation';
readonly randomNumber: Scalars['Int']['output'];
readonly registerExpoPushToken: Scalars['Boolean']['output'];
readonly sendPushNotification: Scalars['Boolean']['output'];
};
Expand All @@ -44,23 +43,6 @@ export type MutationSendPushNotificationArgs = {
title: Scalars['String']['input'];
};

export type Query = {
readonly __typename?: 'Query';
readonly hello: Scalars['String']['output'];
};

export type Subscription = {
readonly __typename?: 'Subscription';
readonly countdown: Scalars['Int']['output'];
readonly randomNumber: Scalars['Int']['output'];
readonly tick: Scalars['Float']['output'];
};


export type SubscriptionCountdownArgs = {
from: Scalars['Int']['input'];
};

export type WithIndex<TObject> = TObject & Record<string, any>;
export type ResolversObject<TObject> = WithIndex<TObject>;

Expand Down Expand Up @@ -135,44 +117,23 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
export type ResolversTypes = ResolversObject<{
Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
ExpoPushPlatform: ExpoPushPlatform;
Float: ResolverTypeWrapper<Scalars['Float']['output']>;
Int: ResolverTypeWrapper<Scalars['Int']['output']>;
Mutation: ResolverTypeWrapper<{}>;
Query: ResolverTypeWrapper<{}>;
String: ResolverTypeWrapper<Scalars['String']['output']>;
Subscription: ResolverTypeWrapper<{}>;
}>;

/** Mapping between all available schema types and the resolvers parents */
export type ResolversParentTypes = ResolversObject<{
Boolean: Scalars['Boolean']['output'];
Float: Scalars['Float']['output'];
Int: Scalars['Int']['output'];
Mutation: {};
Query: {};
String: Scalars['String']['output'];
Subscription: {};
}>;

export type MutationResolvers<ContextType = Zemble.GraphQLContext, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = ResolversObject<{
randomNumber?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
registerExpoPushToken?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationRegisterExpoPushTokenArgs, 'platform' | 'pushToken'>>;
sendPushNotification?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<MutationSendPushNotificationArgs, 'body' | 'pushToken' | 'title'>>;
}>;

export type QueryResolvers<ContextType = Zemble.GraphQLContext, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = ResolversObject<{
hello?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
}>;

export type SubscriptionResolvers<ContextType = Zemble.GraphQLContext, ParentType extends ResolversParentTypes['Subscription'] = ResolversParentTypes['Subscription']> = ResolversObject<{
countdown?: SubscriptionResolver<ResolversTypes['Int'], "countdown", ParentType, ContextType, RequireFields<SubscriptionCountdownArgs, 'from'>>;
randomNumber?: SubscriptionResolver<ResolversTypes['Int'], "randomNumber", ParentType, ContextType>;
tick?: SubscriptionResolver<ResolversTypes['Float'], "tick", ParentType, ContextType>;
}>;

export type Resolvers<ContextType = Zemble.GraphQLContext> = ResolversObject<{
Mutation?: MutationResolvers<ContextType>;
Query?: QueryResolvers<ContextType>;
Subscription?: SubscriptionResolvers<ContextType>;
}>;

Loading