Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
IdanKoblik committed Sep 6, 2024
1 parent 8d6e2e8 commit 635e791
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:

- name: Setup git
run: |
git remote rm origin
git remote add origin [email protected]:${{ github.repository }}
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Expand Down Expand Up @@ -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

0 comments on commit 635e791

Please sign in to comment.