forked from erlang/otp
-
Notifications
You must be signed in to change notification settings - Fork 1
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
2 changed files
with
17 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,6 +387,10 @@ jobs: | |
name: Build and check documentation | ||
runs-on: ubuntu-latest | ||
needs: pack | ||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: ./.github/actions/build-base-image | ||
|
@@ -411,12 +415,21 @@ jobs: | |
docker run -v $PWD/:/github otp \ | ||
"make release_docs DOC_TARGETS='html' RELEASE_ROOT=/github/docs" | ||
sudo chown -R `whoami` docs | ||
echo '<html><script>window.location.replace("doc/index.html")</script></html>' > docs/index.html | ||
cd docs && tar czf ../otp_doc_html.tar.gz * | ||
- name: Upload html documentation archive | ||
uses: actions/[email protected] | ||
with: | ||
name: otp_doc_html | ||
path: otp_doc_html.tar.gz | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
# Upload entire repository | ||
path: 'docs' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
- name: Run html link check | ||
run: docker run -v $PWD/:/github otp "cd /github/docs && /github/scripts/otp_check_html_links.exs" | ||
|
||
|
@@ -450,8 +463,8 @@ jobs: | |
strategy: | ||
matrix: | ||
# type: ${{ fromJson(needs.pack.outputs.all) }} | ||
type: ${{ fromJson(needs.pack.outputs.changes) }} | ||
# type: ["os_mon","sasl"] | ||
# type: ${{ fromJson(needs.pack.outputs.changes) }} | ||
type: ["os_mon","sasl"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/[email protected] | ||
|