From c5ace8aadc321c6313d43c4fa488c34465ab6798 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 7 Oct 2021 18:01:25 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 54 +++++++++++++++---------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index d51a70b8..3fe75373 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -29,36 +29,36 @@ jobs: - name: Install Dependencies run: npm install - name: Run Grabber - run: node scripts/grab.js --channels=sites/${{ matrix.country }}.channels.xml --output=.gh-pages/guides/${{ matrix.country }}.guide.xml --days=${{ matrix.days }} + run: node scripts/grab.js --channels=channels/${{ matrix.country }}.channels.xml --output=.gh-pages/guides/${{ matrix.country }}.guide.xml --days=${{ matrix.days }} - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: .gh-pages path: .gh-pages/guides/${{ matrix.site }}.guide.xml if-no-files-found: error - # deploy: - # if: ${{ github.ref == 'refs/heads/master' }} - # needs: grab - # runs-on: ubuntu-latest - # steps: - # - name: Checkout - # uses: actions/checkout@v2 - # - name: Download Artifacts - # uses: actions/download-artifact@v2 - # - name: Generate Token - # uses: tibdex/github-app-token@v1 - # id: generate-token - # with: - # app_id: ${{ secrets.APP_ID }} - # private_key: ${{ secrets.APP_PRIVATE_KEY }} - # - name: Deploy to GitHub Pages - # uses: JamesIves/github-pages-deploy-action@4.1.1 - # with: - # branch: gh-pages - # folder: .gh-pages - # target-folder: guides - # clean: false - # token: ${{ steps.generate-token.outputs.token }} - # git-config-name: iptv-bot - # git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - # commit-message: '[Bot] Deploy to GitHub Pages' + deploy: + if: ${{ github.ref == 'refs/heads/master' }} + needs: grab + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Download Artifacts + uses: actions/download-artifact@v2 + - name: Generate Token + uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.1.1 + with: + branch: gh-pages + folder: .gh-pages + target-folder: guides + clean: false + token: ${{ steps.generate-token.outputs.token }} + git-config-name: iptv-bot + git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com + commit-message: '[Bot] Deploy to GitHub Pages'