Skip to content

ci: deploy demo to github pages with github action #1

ci: deploy demo to github pages with github action

ci: deploy demo to github pages with github action #1

Workflow file for this run

name: update-demo-daily
on:
schedule:
- cron: "0 6 * * *"
push:
tags:
- "refresh-github-page"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: get-binary
run: |
wget -O tinyfeed https://github.com/TheBigRoomXXL/tinyfeed/releases/latest/download/tinyfeed_linux_arm64
chmod +x tinyfeed
- name: prepare-page
run: echo $FEEDS | ./tinyfeed > index.html
- name: upload-page
uses: actions/upload-pages-artifact@v3
with:
path: index.html
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: deploy-to-github-pages
id: deployment
uses: actions/deploy-pages@v4