Skip to content
New issue

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

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

Already on GitHub? # to your account

Updated the Github Actions to deploy a test version of the site to a … #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IamLRBA
Copy link

@IamLRBA IamLRBA commented Oct 23, 2024

Key Changes

  • deploy_staging job: I made this new job making sure it handles the deployment of any branch to the /staging folder. It's triggered by the workflow_dispatch event, meaning it can be run manually from the GitHub Actions tab.

  • destination_dir: staging: In the deploy_staging step, I set the destination_dir option to staging, so the files will be deployed to the /staging folder on GitHub Pages.

  • Manual trigger: Since the deploy_staging job runs only on workflow_dispatch, it won’t interfere with regular deployments to the main branch.

How to Trigger:

From research, i discovered that the workflow can be manually triggered by navigating to the Actions tab on GitHub, selecting the appropriate workflow, and running it for a desired branch. This will deploy the changes to a /staging folder on GitHub Pages.

This setup allows you to have two separate deployments: one for the main branch (direct deployment to GitHub Pages) and one for testing in a /staging folder.

@IamLRBA IamLRBA marked this pull request as ready for review October 24, 2024 00:28
@IamLRBA
Copy link
Author

IamLRBA commented Oct 24, 2024

cc
@kito99

@IamLRBA IamLRBA marked this pull request as draft October 24, 2024 00:31
@IamLRBA IamLRBA marked this pull request as ready for review October 24, 2024 22:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant