From 3615621cf14f162a5e380baa30cc67a3c972d86e Mon Sep 17 00:00:00 2001 From: David Tran Date: Wed, 24 Apr 2024 13:18:18 +0700 Subject: [PATCH] feat(cd): add cd --- .github/workflows/cd.yml | 52 +++++++++++++++++++++++++++++++++++++++ bun.lockb | Bin 457564 -> 456676 bytes docusaurus.config.ts | 4 +-- 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..3836c8c --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,52 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + # Review gh actions docs if you want to further define triggers, paths, etc + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + +jobs: + build: + name: Build Docusaurus + runs-on: ubuntu-latest + steps: + - name : Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + + - name : Install dependencies + run: bun install --frozen-lockfile + + - name: Build website + run: bun run build + + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: build + + deploy: + name: Deploy to GitHub Pages + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index ff75934bf06452b3eb77a8703b540fc2ce0c8003..e0f7bf85b9adf1efeda0c985bf57301572877850 100755 GIT binary patch delta 6274 zcmeI0dsNj`7RS%I_xHPSkvAw3B7y>vf${S45ETVMzy}KWC>0-on3VDmkjDkh6jKv_ z<&nxPYZ|TPGIFM0*3z_`Nk=VfX41;+p|z~Zr8bkLjy2zX?`G=HS!@2AHD|He`+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XL`TVdzaqP^z!Zo>1dwI z*2cKWHfHxxT3@L>LQ;!!wG5YKp3c=~*kyCG_XKT>Z&M2D0w6Q6K(r%hJquN%;aX$0 zXP(x^8G^DP$Tje*kQT55Ay;72!7qRWKg7knB1%kxLreE$P z^*;2Hp*r;p8gV!P6)cBDz+Meq??4R`CsyCcGT0QOQ9wt5-uD=s$KM7>0U^b8KZ8+O zy`~tBI0^am#{hjS*p3t*H&@r@YwaCfVRnIBMLmk!3``oG9*XP6!|tS_OSNG9avuT} zM8O$NQ~lIXz(s*r93)s(mul@TiJE$@RBNs_mugMykKjwwoUCq_YK=W6mctL}&kE&T zrnN4>?xE1D;;nzKdGv9@-3WJT*Ol7f-zF%z5OGAmb?dVpf0a<++6X0Q=jZs0^!1wa zSIIz>U|K3R@ki$R67^xZ*23Idrft2W9#&&$F)KBH8Ke5I)CQ}c?rDA0*6I35xlR?$ z&>xdq%_B2(tCSDa@tOJtd{Z|k&(fDC?opl5XRh)p)|<&n z6;Z7Bma9}Da*3<({nrefUiC5A+Y zB!qNUYD|gVOkF6}edSJd3(W=Y#AjnqG-JhU&kwr9(e&f=gL_)|utTeQhe`OBjFVV# zIBIF%;RTIP{58zFRwb(~rct6Vkup~`o2$2XFTw|AZ&Xu1zNs~rmF9%G`ZkMv&1_Jr z50Mt15_5E!K3Q5k=BQ5>=yQFi;iE6&=!*2py4OS1LX};vr@mBMu1j^cTu=7jv#_q@ zApgIGM?!I2Qb@E4DboU$9(L;HVW%xUUdd(%CQyjz*0R- zoiubemD%6srQ+YV1*%`(wuPw7ySBzEd9m(k-ud1Z?WykWwI!%kOLQ;Q={MUu{{bGk B#xwu` diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 4058eac..f71eae8 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -15,8 +15,8 @@ const config: Config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'zuni-lab', // Usually your GitHub org/user name. + projectName: 'zuni-lab', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn',