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 workflow for s3 deployment #90

Merged
merged 7 commits into from
Aug 25, 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
45 changes: 45 additions & 0 deletions .github/workflows/veda-auth-portal-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy VEDA Auth Portal to AWS S3

on:
workflow_dispatch:
inputs:
environment:
description: Environment to deploy to
required: true
type: choice
options:
- dev
- prod

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./veda-auth-portal
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.DEPLOYMENT_ROLE_ARN }}
role-session-name: "github-${{ github.repository }}-${{ github.run_id }}"
aws-region: "us-east-2"

- name: Deploy app build to S3 bucket
run: aws s3 sync ./dist/ s3://veda-auth-central-portal --delete


3 changes: 1 addition & 2 deletions veda-auth-portal/src/components/Groups/GroupDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import { Link, useParams } from "react-router-dom";
import { Link } from "react-router-dom";
import { NavContainer } from "../NavContainer";
import { PageTitle } from "../PageTitle";
import { FaArrowLeft } from "react-icons/fa6";
Expand Down Expand Up @@ -41,7 +41,6 @@ const CustomTab = ({ children }: CustomTabProps) => {
}

export const GroupDetails = () => {
const { id } = useParams();
const [basicInfo, setBasicInfo] = useState<GroupMembership | null>(null);

useEffect(() => {
Expand Down
4 changes: 1 addition & 3 deletions veda-auth-portal/src/components/Groups/GroupMembers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import {
Table,
TableContainer,
Tbody,
Td,
Tfoot,
Th,
Td, Th,
Thead,
Tr
} from '@chakra-ui/react';
Expand Down
14 changes: 4 additions & 10 deletions veda-auth-portal/src/components/Groups/GroupSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@ import {
Input,
SimpleGrid,
Stack,
Divider,
Avatar,
Button,
Divider, Button,
Table,
Thead,
Tbody,
Tfoot,
Tr,
Tbody, Tr,
Th,
Td,
TableCaption,
TableContainer,
Td, TableContainer,
Code,
IconButton,
Switch,
Switch
} from '@chakra-ui/react';
import { PageTitle } from '../PageTitle';
import { FiTrash2 } from "react-icons/fi";
Expand Down