Fix "Main playlists not updating" issue
This commit is contained in:
parent
1a5dbcbd82
commit
ed1950e8db
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user