-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from Laravel-Lang/14.x
Update GitHub Actions rules
- Loading branch information
Showing
4 changed files
with
3 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
name: docs | ||
|
||
on: | ||
# trigger deployment on every push to main branch | ||
push: | ||
branches: [ main ] | ||
# trigger deployment manually | ||
workflow_dispatch: | ||
|
||
permissions: write-all | ||
|
@@ -22,10 +20,8 @@ jobs: | |
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
# choose node.js version to use | ||
node-version: '16' | ||
|
||
# cache node_modules | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
id: npm-cache | ||
|
@@ -36,11 +32,9 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-npm- | ||
# install dependencies if the cache did not hit | ||
- name: Install dependencies | ||
run: npm i | ||
|
||
# run build script | ||
- name: Build VuePress site | ||
run: npm run build | ||
env: | ||
|
@@ -49,14 +43,10 @@ jobs: | |
VITE_APP_ALGOLIA_INDEX_NAME: ${{ secrets.VITE_APP_ALGOLIA_INDEX_NAME }} | ||
|
||
|
||
# please check out the docs of the workflow for more details | ||
# @see https://github.com/crazy-max/ghaction-github-pages | ||
- name: Deploy to GitHub Pages | ||
uses: crazy-max/ghaction-github-pages@v3 | ||
with: | ||
# deploy to gh-pages branch | ||
target_branch: gh-pages | ||
# deploy the default output dir of VuePress | ||
build_dir: docs/.vuepress/dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: "Laravel 8" | ||
|
||
on: [ push ] | ||
on: [ push, pull_request ] | ||
|
||
permissions: read-all | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: "Laravel 9" | ||
|
||
on: [ push ] | ||
on: [ push, pull_request ] | ||
|
||
permissions: read-all | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: "Code-Style Check" | ||
|
||
on: [ pull_request ] | ||
on: [ push, pull_request ] | ||
|
||
permissions: read-all | ||
|
||
|