π Build Deploy GH Pages #224
This file contains 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
# Builds and deploys a static website listing feed content to GH Pages | |
# Uses: https://github.com/osmoscraft/osmosfeed | |
name: π Build Deploy GH Pages | |
on: | |
workflow_dispatch: # Manual dispatch | |
schedule: | |
- cron: '30 23 * * *' # At 23:30 each day | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/[email protected] | |
- name: Setup Node.js environment π§ | |
uses: actions/[email protected] | |
with: | |
node-version: "16" | |
- name: Install dependencies π© | |
run: npm i -g @osmoscraft/osmosfeed | |
- name: Build the feed π¨ | |
run: osmosfeed | |
- name: Deploy to GitHub Pages β€΄οΈ | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |