From 635e79182fc84501d9aa78b0da2632b3fabc9e1b Mon Sep 17 00:00:00 2001 From: idan Date: Fri, 6 Sep 2024 22:35:20 +0300 Subject: [PATCH] . --- .github/workflows/release.yml | 42 ----------------------------------- 1 file changed, 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 047aff6..83133fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,8 +31,6 @@ jobs: - name: Setup git run: | - git remote rm origin - git remote add origin git@github.com:${{ github.repository }} git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" @@ -113,43 +111,3 @@ jobs: exit 1 fi fi - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: yarn - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Install dependencies - run: yarn ci - - name: Build with VitePress - run: yarn run docs:build - - - name: Update html - env: - version: ${{ github.event.inputs.name }} - run: | - git reset --hard - git fetch origin - git checkout -b gh-pages origin/gh-pages || git checkout -b gh-pages - git pull origin gh-pages || true - - sed -i 's|url=https://cocoa-beans.apartium.net/[^/]*/">|url=https://cocoa-beans.apartium.net/'"$version"'/">|' "index.html" - - git add index.html - git commit -m "Update index.html" - - - name: Update docs - run: | - git fetch origin || true - git checkout gh-pages origin/pages || git checkout pages - git pull origin pages || true - - ls -la - git mv pages/.vitepress/dist . - ls -la - git add /dist - - git commit -m "Update docs" - git push origin pages