From 415de11a2af696046b3c126e15cf0e5a853aa272 Mon Sep 17 00:00:00 2001 From: timokluser-dev Date: Fri, 22 Sep 2023 21:13:40 +0200 Subject: [PATCH] create github action pipeline --- .github/workflows/generate.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/generate.yml diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 00000000..708c4ba7 --- /dev/null +++ b/.github/workflows/generate.yml @@ -0,0 +1,32 @@ +name: Generate TV Guide 📺 + +on: + push: + branches: + - master + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + generate: + runs-on: ubuntu-latest + timeout-minutes: 60 + container: node:18.18.0-alpine3.18 + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install + run: npm ci + - name: generate + run: npm run grab -- --site=tv.blue.ch --lang=de --days=7 --output=dist/guide.xml + - name: upload artifact + uses: actions/upload-pages-artifact@v2 + with: + name: 'github-pages' + path: 'dist/' + - name: publish to pages + uses: actions/deploy-pages@v2 + with: + artifact_name: 'github-pages' +