Skip to content

Commit

Permalink
Merge pull request #264 from Laravel-Lang/14.x
Browse files Browse the repository at this point in the history
Update GitHub Actions rules
  • Loading branch information
Andrey Helldar authored Jun 30, 2022
2 parents b4b5612 + 2f51dc1 commit d2776c9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/docs.yml
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
Expand 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
Expand All @@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/laravel-8.yml
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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/laravel-9.yml
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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-check.yml
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

Expand Down

0 comments on commit d2776c9

Please sign in to comment.