From 4ae58a3b6da4b6a4421342583d3d7e8c218ae431 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:31:40 -0400 Subject: [PATCH 1/5] Publish previews using netlify --- netlify.toml | 2 ++ package.json | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 netlify.toml create mode 100644 package.json diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..0881c2b --- /dev/null +++ b/netlify.toml @@ -0,0 +1,2 @@ +[[plugins]] +package = "@quarto/netlify-plugin-quarto" diff --git a/package.json b/package.json new file mode 100644 index 0000000..0995263 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@quarto/netlify-plugin-quarto": "^0.0.5" + } +} From f60c691044d8a093ab317710edba94e94bedfbc6 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:38:23 -0400 Subject: [PATCH 2/5] Remove GH preview workflow --- .github/workflows/preview.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 3297a5c..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Deploy PR previews - -on: - pull_request: - branches: - - main - - staging - types: - - opened - - reopened - - synchronize - -concurrency: preview-${{ github.ref }} - -jobs: - deploy-preview: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Quarto - uses: quarto-dev/quarto-actions/setup@v2 - - - run: quarto render --to html - - - name: Deploy preview - uses: rossjrw/pr-preview-action@v1 - with: - source-dir: _site From ea7d15219a6641038a9babcc7eb321a83b35cc31 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:41:41 -0400 Subject: [PATCH 3/5] Remove staging explanation from contrib guide --- contributing.qmd | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/contributing.qmd b/contributing.qmd index be5b4af..6ef98f4 100644 --- a/contributing.qmd +++ b/contributing.qmd @@ -10,18 +10,6 @@ We encourage contributions to this guide. The guide's goal is to provide documen If you wish to preview the site locally, install [quarto](https://quarto.org/). You will also need to be familiar with [quarto markdown](https://quarto.org/docs/authoring/markdown-basics.html). -## Contribution Workflow - -Due to previews only working from branches within the repository and not external forks (see: [#74](https://github.com/cloudnativegeo/cloud-optimized-geospatial-formats-guide/issues/74)), all PRs should target staging. More specifically, the contribution workflow follows these steps: - -1. PR is made with `staging` as target. - -2. Maintainer will merge the PR to staging and then open a PR to main (build preview will run). - -3. Maintainers merge to main which triggers the production deployment. - -The process is not ideal, and we are open to suggestions on how to improve upon it. The main constraint is the [`pr-preview-action`](https://github.com/rossjrw/pr-preview-action) not supporting previews on external contributions. - ## Communication Channels Discussions can occur in [GitHub Discussions](https://github.com/cloudnativegeo/cloud-optimized-geospatial-formats-guide/discussions) and issues can be raised at [GitHub Issues](https://github.com/cloudnativegeo/cloud-optimized-geospatial-formats-guide/issues). From d50843a61fdf161996d52eff6681157a743361a0 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:43:37 -0400 Subject: [PATCH 4/5] Remove pr-target-test job --- .github/workflows/ci.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9169419..9c945f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,18 +8,7 @@ on: pull_request: jobs: - pr-target-test: - runs-on: ubuntu-latest - steps: - - name: Fail if target is not staging (for PRs only) - if: github.event_name == 'pull_request' - run: | - if [[ "${{ github.event.pull_request.base.ref }}" != "main" || "${{ github.event.pull_request.head.ref }}" == "staging" ]]; then - echo "Target branch is acceptable." - else - echo "Only PRs from staging can target main." - exit 1 - fi + tests: runs-on: ubuntu-latest From 37901a61bec72f1e4dbd1cff935967eef5f5d1c4 Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Mon, 9 Jun 2025 18:51:18 -0400 Subject: [PATCH 5/5] Add build with Netlify badge for open source program --- index.qmd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.qmd b/index.qmd index a0d626e..93e5675 100644 --- a/index.qmd +++ b/index.qmd @@ -97,3 +97,9 @@ Most of the data formats covered in this guide have a Jupyter Notebook example t 5. How much of your data is typically rendered or selected at once? {{< include _thankyous.qmd >}} + +```{=html} + + Deploys by Netlify + +``` \ No newline at end of file