From 449c412e5c2e9a232d55a3e36df9e49faf16d978 Mon Sep 17 00:00:00 2001 From: Seyed Yahya Shirazi Date: Wed, 18 Feb 2026 08:34:01 -0800 Subject: [PATCH] Add Cloudflare Pages deploy workflow via GitHub Actions Deploy to Cloudflare Pages on push to main (production) and on PRs (preview with URL comment). Installs Quarto, renders to _site, then deploys via wrangler. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets. Also fix repo name reference in datasets.qmd after rename. --- .github/workflows/deploy.yml | 44 ++++++++++++++++++++++++++++++++++++ datasets.qmd | 2 +- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..2d596d4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,44 @@ +name: Deploy to Cloudflare Pages + +on: + push: + branches: [main] + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + pull-requests: write + steps: + - uses: actions/checkout@v4 + + - name: Install Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render site + run: quarto render + + - name: Deploy to Cloudflare Pages + id: deploy + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy _site --project-name=eegmanysteps --branch=${{ github.head_ref || 'main' }} + + - name: Comment preview URL on PR + if: github.event_name == 'pull_request' + uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: `Preview deployment: ${process.env.DEPLOYMENT_URL}` + }) + env: + DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }} diff --git a/datasets.qmd b/datasets.qmd index 5ba1e2f..74235f3 100644 --- a/datasets.qmd +++ b/datasets.qmd @@ -2,7 +2,7 @@ title: "Available MoBI datasets" --- -This is a table of available EEG datasets on [OpenNeuro](https://openneuro.org/search/modality/eeg?query=%7B%22modality_selected%22%3A%22EEG%22%7D) for the keywords specified in the table. If you find datasets missing, please feel free to add them via a PR on GitHub [here](https://github.com/EEGManySteps/eegmanysteps-website/pulls). +This is a table of available EEG datasets on [OpenNeuro](https://openneuro.org/search/modality/eeg?query=%7B%22modality_selected%22%3A%22EEG%22%7D) for the keywords specified in the table. If you find datasets missing, please feel free to add them via a PR on GitHub [here](https://github.com/EEGManySteps/eegmanysteps.github.io/pulls). | Dataset | Study | Tasks | Authors | Keywords | Mobility Tasks | Sampling Frequency | Participants | EEG Channels | EMG Channels | IMU Tracked Points | IMU Sensor Placement | MoCap Channels | MoCap Sensor Placement | Misc Channel Count | Gait Events Shared| |---------------------------------------------------------------|---------------------------------------------------------|--------------------------------------------------------------|--------------------------------------------|----------|----------------|--------------------|--------------|--------------|--------------|---------------------|--------------------------------|---------------|--------------------------|--------------------|-------------------|