avacore1337 / OneLife

My Vue/WASM/Rust idle game
https://avacore1337.github.io/OneLife/
MIT License
1 stars 2 forks source link

ci/cd via github actions #20

Open dimitrilw opened 1 year ago

dimitrilw commented 1 year ago

I'm not sure you want this, but I'm going to add a github-actions file to auto-deploy updates to master branch. I've done it before where the action is only taken if the repo matches a specific pattern (i.e., dimitrilw/OneLife) and will add that check to the submitted github-actions so that it will auto-deploy on my repo, but not this main one. Unless you find that you like the auto-deploy method, then we can make that action universal to all repos: yours, mine, and any other fork out there.

dimitrilw commented 1 year ago

Oh... I take back a smidge of my bravado. I've done the whole "only run this auto-deployer if repo matches blah-blah" in gitlab, bitbucket, & others that are more "just make bash scripts" for their actions. I forgot that github-actions are a completely different beast. So, I guess that I'm in for some more unexpected learning.

dimitrilw commented 1 year ago

Renaming this issue to ref both CI & CD.

I'll try to make it so that any pushes trigger a workflow that runs just lint && just test.... then the CD (main branch only) would rely (of course) on CI passing before CD is triggered.