diff --git a/.github/workflows/publish-cloudflare-pages.yml b/.github/workflows/publish-cloudflare-pages.yml index 19cfb3e..c319f56 100644 --- a/.github/workflows/publish-cloudflare-pages.yml +++ b/.github/workflows/publish-cloudflare-pages.yml @@ -1,7 +1,7 @@ on: workflow_dispatch: push: - branches: cf-pages + branches: main name: Publish Quarto to Cloudflare Plages diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index b0f8487..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,55 +0,0 @@ -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 - with: - version: pre-release - - # install libcurl, needed for curl R package - # libfribidi-dev libharfbuzz-dev for textshaping - # libxslt1-dev for xslt - - name: Install R package deps - run: | - sudo apt-get update - sudo apt-get install libcurl4-openssl-dev libfribidi-dev libharfbuzz-dev libxslt1-dev - - - name: Install R - uses: r-lib/actions/setup-r@v2 - with: - r-version: '4.4.0' - - - name: Install R Dependencies - uses: r-lib/actions/setup-renv@v2 - with: - cache-version: 1 - - - name: Render book - run: Rscript -e 'babelquarto::render_website()' - - - name: git config - run: | - git config --global user.email "actions@github.com" - git config --global user.name "gh-pages committer" - - - name: Commit results - run: | - cd _site - cp ../CNAME ./ - git init - git add . - git commit -m 'update website' - git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:gh-pages --force