Skip to content

Commit

Permalink
manual deploy (32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaskar1001101 committed Apr 26, 2024
1 parent c68ccd6 commit ac2774d
Show file tree
Hide file tree
Showing 9 changed files with 74 additions and 17 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/copyDeploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: copy_dist_to_deploy

on: [push]

jobs:
copy:
name: Copy my folder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: copy
env:
SRC_FOLDER_PATH: 'dist'
TARGET_BRANCH: 'deploy'
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
files=$(ls $SRC_FOLDER_PATH) # get the file list
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git fetch # fetch branches
git checkout $TARGET_BRANCH # checkout to your branch
rm -rf *
git checkout ${GITHUB_REF##*/} -- $files # copy files from the source branch
git add -A
git diff-index --quiet HEAD || git commit -am "deploy files" # commit to the repository (ignore if no modification)
git push origin $TARGET_BRANCH # push to remote branch
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
File renamed without changes.
2 changes: 1 addition & 1 deletion assets/cp-7dd9e847.css → assets/cp-78252a32.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/index-d36e3b97.css → assets/index-008390d4.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/main-b8fcbfa9.js → assets/main-129509c5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion challenges/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<link rel="icon" type="image/x-icon" href="/assets/favicon-10ae7e9a.ico">
<link rel="icon" type="image/png" href="/assets/AnimatedButton-5df7b69f.jpg">
<title>Status Code 0 | Challenges</title>
<link rel="stylesheet" href="/assets/index-d36e3b97.css">
<link rel="stylesheet" href="/assets/index-008390d4.css">
</head>
<body class="challenges-body">
<div class="challenges-page">
Expand Down
4 changes: 2 additions & 2 deletions cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<!-- <script src="https://cdn.tailwindcss.com"></script> -->
<script src="https://unpkg.com/typeit@8.7.1/dist/index.umd.js"></script>
<title>Community Partners</title>
<script type="module" crossorigin src="/assets/cp-a2e311bb.js"></script>
<link rel="stylesheet" href="/assets/cp-7dd9e847.css">
<script type="module" crossorigin src="/assets/cp-0fa81c7e.js"></script>
<link rel="stylesheet" href="/assets/cp-78252a32.css">
</head>
<a
id="mlh-trust-badge"
Expand Down
30 changes: 19 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://unpkg.com/typeit@8.7.1/dist/index.umd.js"></script>
<title>Status Code 1 | IIIT Kalyani</title>
<script type="module" crossorigin src="/assets/main-b8fcbfa9.js"></script>
<link rel="modulepreload" crossorigin href="/assets/cp-a2e311bb.js">
<link rel="stylesheet" href="/assets/cp-7dd9e847.css">
<script type="module" crossorigin src="/assets/main-129509c5.js"></script>
<link rel="modulepreload" crossorigin href="/assets/cp-0fa81c7e.js">
<link rel="stylesheet" href="/assets/cp-78252a32.css">
</head>

<!-- <a
Expand Down Expand Up @@ -102,14 +102,22 @@ <h1 id="loadingText">
<li class="mx-4 my-6 xl:my-0 hover:text-white">
<a href="#faq" class="text-3xl 2xl:text-4xl">FAQs</a>
</li>
<li class="xl:ml-5">
<div
class="apply-button"
data-hackathon-slug="statuscode1"
data-button-theme="dark"
style="height: 44px; width: 312px"
></div>
</li>
</ul>
</nav>

<div
class="absolute top-[35%] left-20 w-18 hidden py-8 px-4 rounded-md xl:flex flex-col items-center justify-center xl:justify-evenly gap-7 md:gap-10"
>
<a
href="https://www.instagram.com/status._code/"
href="https://www.instagram.com/status._code_1/"
target="_blank"
rel="noopener noreferrer"
class="bg-[#1313130]"
Expand All @@ -132,7 +140,7 @@ <h1 id="loadingText">
/>
</a>
<a
href="https://www.linkedin.com/in/status-code-0-613784278/"
href="https://www.linkedin.com/company/statuscode0/"
target="_blank"
rel="noopener noreferrer"
class="w-[40px] mb-12"
Expand Down Expand Up @@ -1077,7 +1085,7 @@ <h1 class="text-[#9E9E9E] text-3xl md:text-4xl xl:text-5xl m-0">
<img
class="max-w-[180px] mx-20 sm:mx-14 xl:ml-0 my-3 mt-6 sm:max-w-[200px] xl:max-w-[180px] min-[1280px]:translate-x-0 sm:translate-x-10 2xl:max-w-[200px] xl:mx-2 xl:mt-3"
src="/assets/Devfolio-88f610a1.svg"
alt=""
alt="DEVFOLIO_LOGO"
/></a>
</div>
<img src="/assets/r_p_border-c96764d5.svg" alt="" />
Expand Down Expand Up @@ -1185,13 +1193,13 @@ <h1 class="text-[#9E9E9E] text-3xl md:text-4xl xl:text-5xl m-0">
<img
class="max-w-[140px] mx-20 sm:mx-14 my-3 sm:-translate-x-10 sm:max-w-[200px] min-[1280px]:translate-x-0 xl:max-w-[170px] 2xl:max-w-[200px] xl:mr-40"
src="/assets/Polygon-49522c6d.svg"
alt=""
alt="POLYGON_LOGO"
/></a>
<a target="_blank" href="https://polygon.technology/" class="mt-4">
<a target="_blank" href="https://ethindia.co/" class="mt-4">
<img
class="max-w-[140px] mx-20 sm:mx-14 my-3 sm:-translate-x-10 sm:max-w-[200px] min-[1280px]:translate-x-0 xl:max-w-[170px] 2xl:max-w-[200px] xl:mr-40"
src="/assets/ETHIndia-7c63d3df.png"
alt=""
alt="ETHINDIA_LOGO"
/></a>
</div>
<img src="/assets/r_s_border-b735965e.svg" alt="" />
Expand Down Expand Up @@ -1659,7 +1667,7 @@ <h1 class="footerheading text-2xl md:text-4xl m-0">RESOURCES</h1>
</h1>
<div class="flex justify-center xl:justify-between gap-7 md:gap-10">
<a
href="https://www.instagram.com/status._code/"
href="https://www.instagram.com/status._code_1/"
target="_blank"
rel="noopener noreferrer"
>
Expand All @@ -1681,7 +1689,7 @@ <h1 class="footerheading text-2xl md:text-4xl m-0">RESOURCES</h1>
/>
</a>
<a
href="https://www.linkedin.com/in/status-code-0-613784278/"
href="https://www.linkedin.com/company/statuscode0/"
target="_blank"
rel="noopener noreferrer"
class="relative w-[40px]"
Expand Down

0 comments on commit ac2774d

Please sign in to comment.