Skip to content

Commit

Permalink
.github: publish artifacts for pull_requests
Browse files Browse the repository at this point in the history
Github action workflows do not pass secrets to forked repositories
which means that we can't publish to
linux-kernel-library.github.io. For now publish to artifactory.

Signed-off-by: Octavian Purdila <[email protected]>
  • Loading branch information
tavip committed Mar 3, 2020
1 parent eb99417 commit 95d15fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ jobs:
run: sudo pip install Sphinx==1.6.7 sphinx_rtd_theme hieroglyph==1.0
- name: Build documentation
run: cd tools/labs && make docs
- uses: actions/upload-artifact@v1
if: github.event_name == 'pull_request'
with:
name: ${{ github.ref }}
path: Documentation/output/teaching
- name: Setup key to access linux-kernel-labs.github.io
if: github.event_name == 'push'
run: |
mkdir ~/.ssh
echo -n "${{ secrets.GITHUB_IO_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -t rsa github.com
- name: Publish linux-kernel-labs.gihub.io
if: github.event_name == 'push'
run: |
set -x
env
Expand Down

0 comments on commit 95d15fd

Please sign in to comment.