Skip to content

Commit 5ae74f6

Browse files
committed
[gha] Cleanup site action
1 parent b615e53 commit 5ae74f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/site.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- site
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
@@ -20,12 +23,10 @@ jobs:
2023
- name: Build site
2124
run: ./mvnw site site:stage -DskipTests -Dlicense.skip=true -B -V --no-transfer-progress --settings ./.mvn/settings.xml
2225
env:
23-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
2426
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2628
- name: Deploy Site to gh-pages
2729
uses: JamesIves/github-pages-deploy-action@v4
2830
with:
2931
branch: gh-pages
3032
folder: target/staging
31-
ssh-key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)