Every time I want to setup github actions, I need to google yet again what I need to set up, forget to update the branch name in the fly.yml
example provided, …
Solution
A very simple script which
- Create’s a fly deploy token
- Create’s a github action secret in the current repository containing it (if github cli available - will print otherwise)
- Create
.github/workflows/fly.yml
file, with the trigger pointing to the current branch
Usage
The github repo is available here, but if you just want to get the job done:
curl https://raw.githubusercontent.com/sauercrowd/fly-github-actions-setup/main/setup.sh | bash -
Hope this can help someone else