Skip to content

Commit

Permalink
set up auto project association
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinle623 committed Jun 23, 2024
1 parent 248adaf commit deda459
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to Test

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: List Git Remotes
run: git remote -v

- name: Deploy to Test
env:
PAT_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "UoftHacks-Admin"
git clone https://UoftHacks-Admin:${{ secrets.GH_ACCESS_TOKEN }}@github.com/UoftHacks-Admin/test-dashboard-11.git
cd test-dashboard-11
git remote add this-repo https://UoftHacks-Admin:${{ secrets.GH_ACCESS_TOKEN }}@github.com/UofTHacks-Official/dashboard-11.git
git fetch this-repo main:deploy
git checkout deploy
git push -f https://UoftHacks-Admin:${{ secrets.GH_ACCESS_TOKEN }}@github.com/UoftHacks-Admin/test-dashboard-11.git deploy
14 changes: 14 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add site-11 issues to project
on:
issues:
types:
- opened
jobs:
add-to-project:
name: Add To GitHub projects
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/UofTHacks-Official/projects/21
github-token: ${{ secrets.GHPROJECT_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add site-11 prs to project
on:
pull_request:
types:
- opened
jobs:
add-to-project:
name: Add pr to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/UofTHacks-Official/projects/21
github-token: ${{ secrets.GHPROJECT_TOKEN }}
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

2 changes: 1 addition & 1 deletion src/pages/main-site/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Site11 = () => {
<MLHBanner />
<NavBar />
<LandingPage />
{/* <EmailForm /> */}
{/*<EmailForm />*/}
<AboutUs />
<Stats />
<Sponsors />
Expand Down

0 comments on commit deda459

Please sign in to comment.