Uh oh!
There was an error while loading. Please reload this page.
Enable sof-docs deploy in GitHub Actions - #321
Conversation
Will use GitHub Action to do deploy. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
change the action name to better describe the job Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
xiulipan
commented
Jan 28, 2021
@lgirdwood@deb-intel Please check with my test repos if this deploy works for you. |
lgirdwood
left a comment
There was a problem hiding this comment.
@xiulipan looks good + @intelkevinputnam for technical parts.
@xiulipan the next step is to integrate https://github.com/get-woke/woke as a CI action where @deb-intel will provide the config.
Uh oh!
There was an error while loading. Please reload this page.
lgirdwood
commented
Jan 28, 2021
@xiulipan sorry, by next step I mean "next step" schedule is after this PR is merged and maybe after CNY depending on your schedule. |
intelkevinputnam
commented
Jan 28, 2021
LGTM |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| name: html | ||
| path: _build/html | ||
| deploy: |
There was a problem hiding this comment.
Can we rename this to "publish"? Assuming I understood what it does.
There was a problem hiding this comment.
I used the name from Travis scripts. @deb-intel and idea?
There was a problem hiding this comment.
OK, the branch is called publish so my job name suggestion sounds not too far off the mark. deploy-job is another possibility.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
use local action for duplicate code to replace the usage of YAML anchors. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use the local action build-sof-doc.sh to build doc Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
7834d09 to
f7b7252Comparemerge ENV set up steps to make action steps more clean to understand use apt-get update for easy maintain, do not use binary as URL may be invalid. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
xiulipan
commented
Jan 29, 2021
@lgirdwood@deb-intel |
Looks good to me. |
deb-intel
commented
Jan 29, 2021
@xiulipan@lgirdwood Everything looks great!! We need to add two files: .wokeignore and rules-woke.yaml. I have created them already. They need to be placed at the top level, where .gitignore is located. .wokeignore lists all files to ignore when Woke is run. rules-woke.yaml lists customized rules that overwrite the default rules. @xiulipan, do you want me to send the files to you via email or do you want me send them via a PR? IMPORTANT: In order to run the customized file, the checks process must run the following: woke -c ./rules-woke.yaml Please let me know if you have questions! |
deb-intel
commented
Jan 29, 2021
@xiulipan I did not know how to remove Draft mode. Sorry. |
deb-intel
left a comment
There was a problem hiding this comment.
Looks great. Please see my comments.
xiulipan
commented
Feb 1, 2021
@deb-intel Thanks for the woke configure things, Please send a PR for them first and I will do some personal test in my own repo with the woke. I will try to invite you for review at those testing PRs. |
deb-intel
commented
Feb 1, 2021
marc-hb
commented
Feb 1, 2021
Ping? |
xiulipan
commented
Feb 2, 2021
@deb-intel@lgirdwood I will leave this PR here as reference and start to address request from @marc-hb |
use local action to create publish folder for local test Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use public action https://github.com/marketplace/actions/github-pages-action to deploy HTML to our github.io repo when we make a push to publish branch Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
xiulipan
commented
Feb 2, 2021
@deb-intel@lgirdwood@marc-hb I spilt the PR into #323 and #324 But I think it would be better to merge this one if you think all issue is addressed. I found a dependency issue with deploy and build job name. |
lgirdwood
commented
Feb 2, 2021
I'm OK with this, but I have no real experience with GH action so will wait for approvals from @marc-hb and @intelkevinputnam before merging. @marc-hb and @intelkevinputnam please make this a priority as Xiuli will be on vacation for Chinese New Year next week. |
marc-hb
commented
Feb 3, 2021
xiulipan
commented
Feb 3, 2021
@lgirdwood@marc-hb close now as we will move to #324 then #323 |
Disable Travis to avoid conflict.
Optimize and simplify GitHub Actions
Add new deploy job for publish branch
test with my own forked repo
https://github.com/xiulipan/xiulipan.github.io/tree/master
https://github.com/xiulipan/sof-docs/actions/runs/518058071
https://xiulipan.github.io/latest/index.html
TODO: we may need someone with admin to sof-docs to create a personal access token
and set a variable ACTIONS_DEPLOY_KEY as encrypted secrets for a repository.
guide are attached:
https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
(the only needed access is repo/public_repo)
https://docs.github.com/en/actions/reference/encrypted-secrets