Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,21 @@ jobs:
run: |
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials --exclude=conesearch # TODO: remove this exclude!

- name: Name artifact
id: nameartifact
run: |
echo "::set-output name=artifactName::rendered-tutorials-${{ github.sha }}"

- uses: actions/upload-artifact@v2
with:
name: rendered-tutorials-${{ github.sha }}
name: ${{ steps.nameartifact.outputs.artifactName }}
path: _build

- name: Dispatch Learn Astropy deployment
uses: peter-evans/repository-dispatch@0e8ca8c8a5ca5e28d25af2c27fc5aa40f16cffca
if: ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/main') }}
with:
token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}
repository: astropy/learn-astropy
event-type: tutorials-build
client-payload: '{"artifactName": "${{ steps.nameartifact.outputs.artifactName }}", "checkrunid": "${{ github.run_id }}", "repo": "${{ github.repository }}"}'