Use Owncast theme colors #8081
This file contains hidden or 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
| name: Build and deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - "owncast-docusaurus" | |
| schedule: | |
| # Every six hours update the web site | |
| - cron: "0 */6 * * *" | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true # Fetch Hugo themes (true OR recursive) | |
| fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
| - name: Install jq | |
| uses: r26d/jq-action@master | |
| - name: Fetch Contributors | |
| run: "curl https://api.github.com/repos/owncast/owncast/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > data/contributors-core.json" | |
| - name: Fetch Home Page Contributors | |
| run: "curl https://api.github.com/repos/owncast/owncast.github.io/contributors?per_page=100 | jq 'map(.) | .[] | {login: .login, avatar_url: .avatar_url, html_url: .html_url}' | jq --slurp '.' > data/contributors-homepage.json" | |
| - name: Combine Contributors | |
| run: "jq -n 'input | . as $core | (input | . as $homepage | $core + $homepage) | unique_by(.login)' data/contributors-core.json data/contributors-homepage.json > data/contributors.json" | |
| - name: Fetch donors | |
| run: 'curl https://opencollective.com/owncast/members/all.json | jq ''map(.) | .[] | select(.role=="BACKER") | {login: .name, avatar_url: .image, html_url: .profile}'' | jq --slurp ''.'' > data/donors.json' | |
| # - name: Add current development documentation | |
| # run: mkdir -p static/api/development && curl https://raw.githubusercontent.com/owncast/owncast/refs/heads/develop/docs/api/index.html > static/api/development/index.html | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v5 | |
| with: | |
| author_name: Owncast | |
| author_email: [email protected] | |
| message: "Update dynamic content" | |
| add: "data/contributors.json static/roadmap/index.html" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build | |
| run: npm install && npm run build | |
| - name: Deploy to surge | |
| uses: dswistowski/surge-sh-action@v1 | |
| with: | |
| domain: owncast-preview.surge.sh | |
| project: ./build | |
| login: ${{ secrets.SURGE_LOGIN }} | |
| token: ${{ secrets.SURGE_TOKEN }} | |
| # - name: Deploy | |
| # uses: peaceiris/actions-gh-pages@v4 | |
| # with: | |
| # github_token: ${{ secrets.GITHUB_TOKEN }} | |
| # publish_dir: ./public |