Skip to content

Commit 020da24

Browse files
committed
test: update main.yml
1 parent 509aba5 commit 020da24

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ jobs:
5757
with:
5858
path: ./public
5959

60-
- name: Deploy
61-
uses: peaceiris/actions-gh-pages@v4
62-
# If you're changing the branch from main,
63-
# also change the `main` in `refs/heads/main`
64-
# below accordingly.
65-
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
66-
with:
67-
github_token: ${{ secrets.GITHUB_TOKEN }}
68-
publish_dir: ./public
69-
force_orphan: true
60+
deploy:
61+
needs: build
62+
# Deploy to the github-pages environment
63+
environment:
64+
name: github-pages
65+
url: ${{ steps.deployment.outputs.page_url }}
66+
67+
runs-on: ubuntu-latest
68+
steps:
69+
- name: Deploy to GitHub Pages
70+
id: deployment
71+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 commit comments

Comments
 (0)