Mine CF Marketing Site #20110
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
on: | |
schedule: | |
- cron: '15 * * * *' | |
workflow_dispatch: {} | |
name: Mine CF Marketing Site | |
jobs: | |
runner: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore NPM cache | |
uses: actions/cache@v4 | |
continue-on-error: true | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('scripts/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Mine marketing site | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
cd scripts | |
npm ci | |
npm run mine:marketing | |
env: | |
DISCORD_WEBHOOK_MARKETING: ${{ secrets.DISCORD_WEBHOOK_MARKETING }} |