Merge pull request #417 from iptv-org/fix-deploy

Fix deploy step
This commit is contained in:
Aleksandr Statciuk 2022-01-19 21:49:09 +03:00 committed by GitHub
commit 9e45139883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 10 deletions

View file

@ -52,7 +52,7 @@ https://iptv-org.github.io/epg/api/channels.json
] ]
``` ```
### List of programs <!-- ### List of programs
``` ```
https://iptv-org.github.io/epg/api/programs.json https://iptv-org.github.io/epg/api/programs.json
@ -78,7 +78,7 @@ https://iptv-org.github.io/epg/api/programs.json
}, },
... ...
] ]
``` ``` -->
## Contribution ## Contribution

View file

@ -6,7 +6,10 @@ const API_DIR = process.env.API_DIR || '.gh-pages/api'
async function main() { async function main() {
await generateChannelsJson() await generateChannelsJson()
await generateProgramsJson()
// Reason: File api/programs.json is 419.08 MB; this exceeds GitHub's file size limit of 100.00 MB
// await generateProgramsJson()
logger.info(`Done`) logger.info(`Done`)
} }

View file

@ -77,7 +77,7 @@ https://iptv-org.github.io/epg/api/channels.json
] ]
``` ```
### List of programs <!-- ### List of programs
``` ```
https://iptv-org.github.io/epg/api/programs.json https://iptv-org.github.io/epg/api/programs.json
@ -103,7 +103,7 @@ https://iptv-org.github.io/epg/api/programs.json
}, },
... ...
] ]
``` ``` -->
## Contribution ## Contribution

View file

@ -32,12 +32,12 @@ it('can generate channels.json', () => {
expect(output).toBe(expected) expect(output).toBe(expected)
}) })
it('can generate programs.json', () => { // it('can generate programs.json', () => {
const output = content('tests/__data__/output/api/programs.json') // const output = content('tests/__data__/output/api/programs.json')
const expected = content('tests/__data__/expected/api/programs.json') // const expected = content('tests/__data__/expected/api/programs.json')
expect(output).toBe(expected) // expect(output).toBe(expected)
}) // })
function content(filepath) { function content(filepath) {
const data = fs.readFileSync(path.resolve(filepath), { const data = fs.readFileSync(path.resolve(filepath), {