Skip to content

chore: bump got-scraping version (ada url issue) (#2066) #709

chore: bump got-scraping version (ada url issue) (#2066)

chore: bump got-scraping version (ada url issue) (#2066) #709

Workflow file for this run

name: docs
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v2-beta
with:
node-version: 18
- name: Enable corepack
run: |
corepack enable
corepack prepare yarn@stable --activate
- name: Set git identity
run: |
git config --global user.name "Martin Adámek"
git config --global user.email "martin@apify.com"
- name: Build & deploy docs
run: |
# install project deps
yarn
# go to website dir
cd website
# install website deps
yarn
# build and deploy the docs
yarn deploy
env:
GIT_USER: "B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
squash:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: actions/checkout@v4
with:
ref: 'gh-pages'
fetch-depth: 0
- name: Set git identity
run: |
git config --global user.name "Martin Adámek"
git config --global user.email "martin@apify.com"
- name: Squash all commits to reduce repository size
run: |
TOTAL_COMMITS="$(($(git rev-list --count HEAD)-1))"
echo "squashing $TOTAL_COMMITS commits"
git reset HEAD~$TOTAL_COMMITS
git add .
git commit --amend -m 'crawlee.dev docs'
git push --force origin gh-pages
env:
GIT_USER: "B4nan:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}