diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 02de4245a..f8de6c143 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -4,7 +4,7 @@ description: 'Download translations and build the site' runs: using: composite steps: - - uses: myparcelnl/actions/yarn2-install@v3 + - uses: myparcelnl/actions/yarn-install@v3 - name: 'Import latest translations' shell: bash diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index cd4d68c73..2a1ceb92c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -12,8 +12,6 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - with: - ref: ${{ github.event.client_payload.pull_request.head.ref }} - uses: ./.github/actions/build @@ -21,6 +19,19 @@ jobs: with: path: src/.vuepress/dist + - uses: actions/upload-artifact@v2 + with: + name: dist + path: src/.vuepress/dist + + deploy-s3: + needs: upload + runs-on: ubuntu-22.04 + steps: + - uses: actions/download-artifact@v2 + with: + name: dist + - uses: reggionick/s3-deploy@v3 env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -30,10 +41,10 @@ jobs: bucket: ${{ secrets.S3_BUCKET }} delete-removed: true dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} - folder: src/.vuepress/dist + folder: dist private: true - deploy: + deploy-ghp: needs: upload runs-on: ubuntu-22.04 permissions: diff --git a/.github/workflows/reindex.yml b/.github/workflows/reindex.yml index 10180b8b6..f85d1fb0e 100644 --- a/.github/workflows/reindex.yml +++ b/.github/workflows/reindex.yml @@ -1,16 +1,13 @@ name: '🔍 Reindex search results' -on: - page_build: - - workflow_dispatch: +on: deployment jobs: trigger: name: 'Trigger crawl' runs-on: ubuntu-22.04 steps: - - uses: algolia/algoliasearch-crawler-github-actions@v1.1.6 + - uses: algolia/algoliasearch-crawler-github-actions@v1.1.9 with: algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}