From 9fdfce839519df56d9706f7f9451954d3fbfee36 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Tue, 29 Aug 2023 20:54:20 +0200 Subject: [PATCH] fix: gh-pages pipeline --- .github/workflows/translations.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 6ec3a3f..b8ad614 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -29,18 +29,19 @@ jobs: npm run tldr-translation-pairs-gen -- --source /tmp/tldr-main --output /tmp/datasets - name: Package artifacts run: | - tar czf /tmp/tldr-pages-translation-pairs.tar.gz --directory /tmp datasets - - name: Upload artifacts - uses: actions/upload-artifact@v3 - with: - name: tldr-pages-translation-pairs - path: /tmp/tldr-pages-translation-pairs.tar.gz - if-no-files-found: error - retention-days: 60 + mkdir /tmp/dist + tar czf /tmp/dist/tldr-pages-translation-pairs.tar.gz --directory /tmp datasets - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: /tmp/tldr-pages-translation-pairs.tar.gz + path: /tmp/dist + deploy: + needs: translations + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v2