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

chore: workflow to deploy website to github pages #9

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

usefulthink
Copy link
Contributor

Adds a workflow that builds both the API docs and the playground application and deploys them to github-pages using the new actions-based deployment method.

To make this work, Github Pages pages needs to be enabled and configured to allow deployments from actions. To do that, navigate to Settings > Code and automation > Pages, then in the section "Build and deployment" select "Github Actions" as the source. This will allow the actions/deploy-pages action to deploy new versions of the site.

After deployment, the documentation will be available at https://googlemaps.github.io/js-adv-markers-utils and the playground will be at https://googlemaps.github.io/js-adv-markers-utils/playground

The Google Maps API key needed for the playground application should be provided as a secret under the name GOOGLE_MAPS_API_KEY (the key can be limited to the referrer https://googlemaps.github.io/js-adv-markers-utils/*)

This has already been tested in my fork of the repository, deployed versions available at https://usefulthink.github.io/js-adv-markers-utils/ and https://usefulthink.github.io/js-adv-markers-utils/playground

Adds a workflow that builds both the API docs and the
playground application and deploys them to github-pages using the new
actions-based deployment method.

To make this work, Github Pages pages needs to be enabled and configured
to allow deployments from actions. To do that, navigate to Settings >
Code and automation > Pages, then in the section "Build and deployment"
select "Github Actions" as the source. This will allow the
`actions/deploy-pages` action to deploy new versions of the site.

After deployment, the documentation will be available at
https://googlemaps.github.io/js-adv-markers-utils and the playground
will be at https://googlemaps.github.io/js-adv-markers-utils/playground

The Google Maps API key needed for the playground application should be
provided as a secret under the name `GOOGLE_MAPS_API_KEY` (the key can
be limited to the referrer `https://googlemaps.github.io/js-adv-markers-utils/`)

This has already been tested in my fork of the repository at
https://usefulthink.github.io/js-adv-markers-utils/ and
https://usefulthink.github.io/js-adv-markers-utils/playground
@usefulthink usefulthink requested a review from a team as a code owner August 21, 2023 07:49
@usefulthink usefulthink requested review from wangela and removed request for a team August 21, 2023 07:49
@amuramoto amuramoto merged commit 75ac082 into googlemaps:main Aug 29, 2023
6 checks passed
googlemaps-bot pushed a commit that referenced this pull request Aug 29, 2023
### [1.2.1](v1.2.0...v1.2.1) (2023-08-29)

### Bug Fixes

* **playground:** remove code sharing functions ([#10](#10)) ([4731320](4731320))

### Miscellaneous Chores

* workflow to deploy website to github pages ([#9](#9)) ([75ac082](75ac082))
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 1.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants