Atualizar .github/workflows/build.yml
All checks were successful
Build Eleventy / build (24.x) (push) Successful in 31s
All checks were successful
Build Eleventy / build (24.x) (push) Successful in 31s
This commit is contained in:
parent
d1d6f83235
commit
afa7081181
1 changed files with 10 additions and 5 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
|
@ -37,8 +37,13 @@ jobs:
|
|||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v4
|
||||
with:
|
||||
publish_dir: ./docs
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Deploy to forgejo-pages
|
||||
run: |
|
||||
git config user.email "ci@example.com"
|
||||
git config user.name "CI Bot"
|
||||
git checkout --orphan forgejo-pages
|
||||
git rm -rf .
|
||||
cp -r docs/* .
|
||||
git add .
|
||||
git commit -m "Deploy: $(date)"
|
||||
git push -f origin forgejo-pages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue