Skip to content

Commit

Permalink
Merge pull request #38 from Linkup-3mw/dev
Browse files Browse the repository at this point in the history
[Chore] deploy setting
  • Loading branch information
moonyah authored Jun 1, 2024
2 parents 65a7de6 + 59a86d3 commit 90a39f3
Show file tree
Hide file tree
Showing 4 changed files with 795 additions and 2,063 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy

on:
push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

container: pandoc/latex

steps:
- uses: actions/checkout@v2

- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache

- name: creates output
run: sh ./build.sh

- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
with:
source-directory: 'output'
destination-github-username: moonyah
destination-repository-name: linkup-frontend
user-email: ${{ secrets.EMAIL }}
commit-message: ${{ github.event.commits[0].message }}
target-branch: main

- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd ../
mkdir output
cp -R ./frontend/* ./output
cp -R ./output ./frontend/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"react-hook-form": "^7.51.4",
"react-responsive": "^10.0.0",
"recoil": "^0.7.7",
"zod": "^3.23.8",
"swiper": "^11.1.3",
"tailwind-scrollbar-hide": "^1.1.7"
"tailwind-scrollbar-hide": "^1.1.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/chart.js": "^2.9.41",
Expand All @@ -38,6 +38,7 @@
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"eslint-config-prettier": "^9.1.0",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
Expand Down
Loading

0 comments on commit 90a39f3

Please sign in to comment.