Skip to content

Publish Stats Image #1876

Publish Stats Image

Publish Stats Image #1876

name: Publish Stats Image
permissions:
contents: write
on:
schedule:
- cron: '0 */3 * * *'
push:
branches:
- main
jobs:
build:
name: put stats image to release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm run download
env:
STRAVA_CLIENT_ID: ${{ secrets.STRAVA_CLIENT_ID }}
STRAVA_CLIENT_SECRET: ${{ secrets.STRAVA_CLIENT_SECRET }}
STRAVA_REFRESH_TOKEN: ${{ secrets.STRAVA_REFRESH_TOKEN }}
- name: Deploy as Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./