forked from eclipse-velocitas/velocitas-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,8 @@ name: CI workflow | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
|
||
jobs: | ||
|
@@ -33,10 +35,14 @@ jobs: | |
hugo-version: "0.123.3" | ||
extended: true | ||
|
||
- name: Verify that devcontainer works | ||
run: | | ||
cd .devcontainer | ||
docker buildx build -f Dockerfile -t test:latest . | ||
- name: Build devcontainer and run automated tests | ||
uses: devcontainers/[email protected] | ||
with: | ||
runCmd: | | ||
# Give some time for server to come up | ||
sleep 20 | ||
# Do a sanity check that the server has started and says something about eclipse | ||
curl http://localhost:1313/velocitas/docs/about/ | grep -e eclipse | ||
- name: Build | ||
run: | | ||
|
@@ -57,11 +63,10 @@ jobs: | |
echo -e "\`\`\`" >> $GITHUB_STEP_SUMMARY | ||
- name: Publish to GH Pages | ||
# Note that gh_pages isnt published to https://eclipse-velocitas.github.io/velocitas-docs/ | ||
# Note that gh_pages isn't published to https://eclipse-velocitas.github.io/velocitas-docs/ | ||
# or the alias https://eclipse.dev/velocitas/ | ||
# So this basically just check if there are errors :-) | ||
# Only publish to gh_pages if this was a push to master | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
if: ${{ github.event_name == 'push'}} | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|