Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrating automated events.csv building into github actions #61

Open
kir12 opened this issue May 1, 2024 · 1 comment
Open

integrating automated events.csv building into github actions #61

kir12 opened this issue May 1, 2024 · 1 comment
Labels
enhancement New feature or request has dependency depends on completion of an older issue

Comments

@kir12
Copy link
Collaborator

kir12 commented May 1, 2024

In order to cut out the manual step of downloading events.csv from Google Sheets directly to the repo, James suggested that this process be automatically driven by having a GitHub Action export a copy of events.csv into into the build before it gets sent live. This issue will demonstrate the viability of automated rendering of events.csv, with the modification of replacing Google Sheets with a small SQLite database checked into the repository.

  1. Create a SQLite database file e.g. db.sqlite3 and store it somewhere on the local repository, make sure that it isn't directly added into the build output!
  2. Demonstrate exporting from the database file into an events.csv file -- following the same existing formatting rules that the manually downloaded events.csv file has -- and test to make sure it integrates properly into the schedule app.
    a. Whatever mechanism eventually is used for this exporting, make sure it can be used by GitHub Actions
  3. Set up a GitHub Action for rendering and injecting events.csv into the build folder for a development version
    a. Have the GitHub Action execute whenever new changes are pushed on any branch and on the newest pushed commit only
    b. Exclude the gh-pages branch since that's the deployment branch
    c. Set up a deployed development version of the website on a service that allows different versions of a webpage per each branch (e.g. netlify?)
    d. James may have a better option for pre-production builds, use that if there is one
  4. Set up another GitHub Action for rendering and injecting events.csv for the production version on GitHub Pages
    a. Optionally, hijack npm run deploy to do this locally before gh-pages makes its push if the GitHub Action exhibits problems

Pre-requesites:

@kir12 kir12 added enhancement New feature or request has dependency depends on completion of an older issue labels May 1, 2024
@kir12 kir12 pinned this issue May 1, 2024
@kir12
Copy link
Collaborator Author

kir12 commented Jun 9, 2024

new dependency #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request has dependency depends on completion of an older issue
Projects
None yet
Development

No branches or pull requests

1 participant