From ed1950e8dbd0a3ed9914208f1758d221c8b8a1b5 Mon Sep 17 00:00:00 2001 From: freearhey Date: Wed, 13 Nov 2019 16:23:37 +0300 Subject: [PATCH] Fix "Main playlists not updating" issue --- .github/workflows/publish.yml | 15 ++++++++++----- scripts/generate.js | 6 ------ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 17c01b6d98..212d414823 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,20 +5,25 @@ on: - cron: '0 1 * * *' jobs: - generate: + deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@master - - name: Generate Playlists and Deploy - uses: JamesIves/github-pages-deploy-action@master - env: + - name: Install Dependencies + run: npm install + + - name: Generate Playlists + run: npm run generate + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: ACCESS_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} BASE_BRANCH: master BRANCH: gh-pages FOLDER: .gh-pages - BUILD_SCRIPT: npm install && npm run generate update-readme: runs-on: ubuntu-latest needs: generate diff --git a/scripts/generate.js b/scripts/generate.js index 210438ddd2..423d74cc3b 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -14,8 +14,6 @@ function main() { parseIndex() console.log('Creating root directory...') createRootDirectory() - console.log('Creating .nojekyll...') - createNoJekyllFile() console.log('Generating index.m3u...') generateIndex() console.log('Generating index.country.m3u...') @@ -41,10 +39,6 @@ function createRootDirectory() { helper.createDir(ROOT_DIR) } -function createNoJekyllFile() { - helper.createFile(`${ROOT_DIR}/.nojekyll`) -} - function parseIndex() { const root = helper.parsePlaylist('index.m3u')