This pipeline consists out of a Spring Boot Java Projekt in folder "wim-calculator-backend".
https://docs.github.com/en/actions/deployment/about-deployments/deploying-with-github-actions
Install Heroku CLI
npm install -g heroku
Login to Heroku
heroku login
Create Heroku app via CLI
heroku create backend-api
heroku deploy:jar target/calculator.jar --app wim-backend
set HEROKU_API_KEY="<<<API KEY>>>"
heroku logs --tail --app wim-backend
heroku git:remote -a wim-java-backend
Create custom action: https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action#commit-tag-and-push-your-action-to-github
Example https://github.com/open-sauced/hot/tree/main/.github/workflows