Skip to content

Commit

Permalink
Add GitHub pages upload in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerbo committed Jul 20, 2022
1 parent ad8e3f9 commit e30db34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ jobs:
- name: Upload satfreq.json
uses: actions/upload-artifact@v3
with:
name: satfreq
path: satfreq.json

- name: Generate json/ directory listing
run: cd json && (echo '<!DOCTYPE html><html><body><ul>'; for i in *; do echo "<li><a href=\"$i\">$i</a></li>"; done; echo '</ul></body></html>') > index.html

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .

0 comments on commit e30db34

Please sign in to comment.