Skip to content

Publish Book Daily #587

Publish Book Daily

Publish Book Daily #587

Workflow file for this run

name: Publish Book Daily
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [17.x]
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run start
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: release-${{ steps.date.outputs.date }}
prerelease: false
title: Release ${{ steps.date.outputs.date }}
files: |
*.pdf