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

[Beta] Add deployment workflow for beta environment #2595

Merged
merged 10 commits into from
Jul 3, 2024

Conversation

f-fsantos
Copy link
Collaborator

What are the changes?

This commit adds a new GitHub Actions workflow file, deploy-beta.yml, which is responsible for deploying the application to the beta environment.
This commits changes the deploy.yml GitHub Actions workflow file to only trigger a deploy to the production environment when a release is generated.

Why am I doing these changes?

Adding support for the new beta environment.

What did change?

Added deploy-beta.yml and changed deploy.yml triggers.

Screenshots/Videos

How to test the changes?

Checklist

  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I tested the changes (manually)?
    • Are all unit tests still passing? (npm run test)
  • Are the changes visual?
    • Have I provided screenshots/videos of the changes?

This commit adds a new GitHub Actions workflow file, deploy-beta.yml, which is responsible for deploying the application to the beta environment. The workflow is triggered on push and pull request events. It checks if the repository is 'pagefaultgames/pokerogue' before running the deployment steps. The deployment includes checking out the code, setting up the Node.js environment, installing dependencies, building the application, setting up SSH for secure communication, deploying the build on the server using rsync, and purging the Cloudflare cache. The deployment is only performed when the push event is triggered on the default branch.
It also changes the deploy.yml workflow to be triggered only when a release is generated.
@f-fsantos f-fsantos added the Enhancement New feature or request label Jun 25, 2024
@f-fsantos f-fsantos self-assigned this Jun 25, 2024
Copy link
Collaborator

@OrangeRed OrangeRed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

Copy link
Collaborator

@flx-sta flx-sta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need an env for every environment ? Normally u have 1 env and all the others are set inside the deployment script

src/utils.ts Show resolved Hide resolved
Copy link
Collaborator

@flx-sta flx-sta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need this ASAP 🚀

@brain-frog brain-frog merged commit e42c329 into pagefaultgames:main Jul 3, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants