Skip to content

🌏 Build Deploy GH Pages #241

🌏 Build Deploy GH Pages

🌏 Build Deploy GH Pages #241

# 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