diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..56cfe00 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,41 @@ +name: CI/CD + +on: + push: + branches: ['master'] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: 'pages' + cancel-in-progress: false + +jobs: + generate: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - run: npm ci --ignore-scripts --no-audit + + - run: npm run build --workspace @sofash/cli + + - run: npm run start cinema rav-hen --workspace @sofash/cli -- --cinemaId 1058 --date 2024-06-09 + + - uses: actions/upload-pages-artifact@v3 + with: + path: './packages/cli/data' + + deploy: + runs-on: ubuntu-latest + needs: + - generate + steps: + - uses: actions/deploy-pages@v4 diff --git a/packages/cli/src/cinema/rav-hen/api/rav-hen.config.ts b/packages/cli/src/cinema/rav-hen/api/rav-hen.config.ts index 3dcb831..5b1f104 100644 --- a/packages/cli/src/cinema/rav-hen/api/rav-hen.config.ts +++ b/packages/cli/src/cinema/rav-hen/api/rav-hen.config.ts @@ -2,6 +2,8 @@ import type { RavHenCinemaId } from './rav-hen.models.js'; const cinemaIdToName = { 1058: 'givataiim', + 1071: 'dizengoff', + 1062: 'kiryat ono', } as const satisfies Record; export const ravHenConfig = { diff --git a/packages/cli/src/cinema/rav-hen/api/rav-hen.models.ts b/packages/cli/src/cinema/rav-hen/api/rav-hen.models.ts index 6d5c3c7..5dd9578 100644 --- a/packages/cli/src/cinema/rav-hen/api/rav-hen.models.ts +++ b/packages/cli/src/cinema/rav-hen/api/rav-hen.models.ts @@ -50,6 +50,6 @@ export const ravHenEventSchema = z.object({ export type RavHenEvent = z.infer; -export const ravHenCinemaIds = ['1058'] as const; +export const ravHenCinemaIds = ['1058', '1071', '1062'] as const; export type RavHenCinemaId = (typeof ravHenCinemaIds)[number]; export const ravHenCinemaIdSchema = z.enum(ravHenCinemaIds);