Add GitLab pages deploy

This commit is contained in:
Barichello
2019-12-19 18:04:40 -03:00
parent f850901f03
commit 40de3db777
2 changed files with 27 additions and 4 deletions

View File

@@ -14,13 +14,20 @@ A `.gitlab-ci.yml` is included in this project as reference, for live projects u
- [Deployed game example](http://barichello.me/game-off/)
- [Pipelines running](https://gitlab.com/BARICHELLO/game-off/pipelines)
You will need the following **Variables** set in GitLab CI/CD panel for this script to work:
You can choose either [GitLab Pages](https://gitlab.com/help/user/project/pages/index.md) or [GitHub Pages](https://pages.github.com/) to deploy this project.
### GitLab Pages
Delete the `deploy-github-pages` job from your `.gitlab-ci.yml`.
### GitHub Pages
Delete the `pages` job and set the following **Variables** in the GitLab CI/CD panel:
*Access `https://gitlab.com/<username>/<repo-name>/settings/ci_cd` to edit:*
|Variable|Description|Example|
|-|-|-|
| $EXPORT_NAME | Name given to the artifacts generated by godot. | `game-off`
| $REMOTE_URL | The `git remote` where the web export will be hosted (in this case GitHub), it should contain your [deploy/personal access token](https://github.com/settings/tokens)|`https://<github username>:<deploy token>@github.com/<username>/<repository>.git`
| $GIT_EMAIL | Git email of the account that will commit to the `gh-pages` branch. | `artur@barichello.me`
| $GIT_USERNAME | Username of the account that will commit to the `gh-pages` branch. | `abarichello`