From 737505d4d12317ed90ca71247eca082a205666b8 Mon Sep 17 00:00:00 2001 From: O2iginal <114271371+O2iginal@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:20:32 +0800 Subject: [PATCH] github action publish --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ _quarto.yml | 3 +++ about.qmd | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..e054371 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +on: + workflow_dispatch: + push: + branches: main + +name: Quarto Publish + +jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/_quarto.yml b/_quarto.yml index f85708a..ebf8522 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -1,6 +1,9 @@ project: type: website +execute: + freeze: auto + website: title: "O2iginal's Blog" navbar: diff --git a/about.qmd b/about.qmd index 07c5e7f..65fb830 100644 --- a/about.qmd +++ b/about.qmd @@ -2,4 +2,4 @@ title: "About" --- -About this site +About this site ~