Update workflow

This commit is contained in:
freearhey
2019-11-02 19:12:03 +03:00
parent bdd685d052
commit b51cea80fc
4 changed files with 81 additions and 36 deletions

21
.github/workflows/generate.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Generate Playlists and Deploy
on:
schedule:
- cron: '0 0 * * *'
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Generate Playlists and Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: .gh-pages
BUILD_SCRIPT: npm install && npm run generate