Skip to content

Comments

use deploy-pages#13

Merged
rugeli merged 3 commits intofeature/deploy-to-gh-pagesfrom
feature/use-deploy-pages
Feb 18, 2025
Merged

use deploy-pages#13
rugeli merged 3 commits intofeature/deploy-to-gh-pagesfrom
feature/use-deploy-pages

Conversation

@rugeli
Copy link
Contributor

@rugeli rugeli commented Feb 12, 2025

Problem

What is the problem this work solves, including
Proposes switching to github's native deploy-pages action for github pages deployment.
closes #10

The deployment in pr #12 is working well. After digging around, I found that github recommends using deploy-pages so I'm giving it a try.

Doc: https://github.com/marketplace/actions/deploy-github-pages-site

Solution

What I/we did to solve this problem

  • Replaces JamesIves/github-pages-deploy-action@v4 with actions/deploy-pages@v4

Pros:

  • better integration with github environment protection rules
  • easier maintenance

Cons:

  • slightly more complex since it involves uploading artifacts and environment setup, etc.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Steps to Verify:

  1. this pr was tested by temporarily adding the working branch to protection rules
  2. the workflow should work as expected after merging into main

@rugeli rugeli changed the base branch from main to feature/deploy-to-gh-pages February 12, 2025 20:29
@rugeli rugeli marked this pull request as ready for review February 12, 2025 20:44
@rugeli rugeli requested a review from ascibisz February 12, 2025 20:44
@rugeli rugeli merged commit 0e62046 into feature/deploy-to-gh-pages Feb 18, 2025
@rugeli rugeli deleted the feature/use-deploy-pages branch February 18, 2025 18:09
rugeli added a commit that referenced this pull request Feb 26, 2025
* setup build and deploy to github pages workflow

* setup build and deploy to github pages workflow

* add missing firebase dependency

* add start script

* try setting private to false

* use different deploy action so we can specify folder

* give permissions to action

* try removing some steps that aren't included in documentation?

* add setup pages step back

* try breaking github pages stuff into two separate jobs

* Revert "try removing some steps that aren't included in documentation?"

This reverts commit eb9751a.

* try to trigger new deploy

* try breaking up github pages deploy into two steps

* use valid upload-artifact version

* use updated version of download artifact

* change artifact name

* add absolute path

* revert accidental changes

* Github Pages workflow is working here

* try only givin gworkflow read access

* set title to CellPACK

* try doing build and deploy together, without upload / download steps

* fix capitalization in cellPACK

* try pulling out workflow_dispatch, since it's not doing anything

* undo some of the chagnes to package.json from debugging

* remove test branch, add blank line at end of file

* use deploy-pages (#13)

* use deploy-pages instead

* fix path

* remove testing branch from the workflow

---------

Co-authored-by: Ruge Li <rugeli0605@gmail.com>
Co-authored-by: Ruge Li <91452427+rugeli@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants