File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ name: Deploy Docs
22
33on :
44 push :
5- branches : [ 'main' ]
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
68
79permissions :
810 contents : read
1416 runs-on : ubuntu-latest
1517 steps :
1618 - uses : actions/checkout@v4
17- - name : Validate Gradle Wrapper
18- uses : gradle/wrapper-validation-action@v1
19- - uses : actions/cache@v3
19+ - uses : actions/cache@v4
2020 with :
2121 path : ~/.konan
2222 key : ${{ runner.os }}-${{ hashFiles('**/.lock') }}
2727 distribution : ' temurin'
2828 - name : Set up Gradle
2929 uses : gradle/actions/setup-gradle@v4
30+ with :
31+ validate-wrappers : true
3032 - name : Build Docs
3133 run : |
3234 ./gradlew \
4244
4345 # Deployment job
4446 deploy :
47+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
4548 environment :
4649 name : github-pages
4750 url : ${{ steps.deployment.outputs.page_url }}
5053 steps :
5154 - name : Deploy to GitHub Pages
5255 id : deployment
53- uses : actions/deploy-pages@v4
56+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments