Skip to content

Commit

Permalink
Publish blogs to 'leadership.qubitpi.org'
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Jul 17, 2024
1 parent f438ea4 commit ff250ed
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright Jiaqi Liu
---
name: CI/CD

"on":
push:
branches:
- master

jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
npm install -g pnpm
pnpm install
pnpm add sharp
pnpm build
- name: Deploy blogs to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
enable_jekyll: false
user_name: QubitPi
user_email: [email protected]
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ pnpm-debug.log*
.DS_Store

.vercel

.idea
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const oklchToHex = (str) => {

// https://astro.build/config
export default defineConfig({
site: "https://fuwari.vercel.app/",
site: "https://leadership.qubitpi.org/",
base: "/",
trailingSlash: "always",
integrations: [
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
leadership.qubitpi.org

0 comments on commit ff250ed

Please sign in to comment.