diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 000000000..d8d7d6243 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -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: jack20220723@gmail.com diff --git a/.gitignore b/.gitignore index 505254099..d089a1afe 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ pnpm-debug.log* .DS_Store .vercel + +.idea diff --git a/astro.config.mjs b/astro.config.mjs index 125765684..e4391626e 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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: [ diff --git a/public/CNAME b/public/CNAME new file mode 100644 index 000000000..7e3dec2d7 --- /dev/null +++ b/public/CNAME @@ -0,0 +1 @@ +leadership.qubitpi.org \ No newline at end of file