Skip to content

Commit

Permalink
Update build-and-deploy.yml
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
d00p authored Sep 22, 2024
1 parent 181096f commit 2584614
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,7 +27,7 @@ jobs:
working-directory: .generator

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install npm dependencies
Expand All @@ -42,7 +42,7 @@ jobs:
if: ${{ github.event.inputs.ref == 'main' }}

- name: Deploy to server (dev/nightly)
uses: easingthemes/ssh-deploy@v3.4.3
uses: easingthemes/ssh-deploy@main
env:
ARGS: "-rltgoDzvO --delete --chown=${{ secrets.WEB_USER }}:${{ secrets.WEB_USER }}"
SOURCE: ".vitepress/dist/"
Expand All @@ -65,7 +65,7 @@ jobs:
if: ${{ github.event.inputs.ref != 'main' }}

- name: Deploy to server (latest)
uses: easingthemes/ssh-deploy@v3.4.3
uses: easingthemes/ssh-deploy@main
env:
ARGS: "-rltgoDzvO --delete --chown=${{ secrets.WEB_USER }}:${{ secrets.WEB_USER }}"
SOURCE: ".vitepress/dist/"
Expand All @@ -83,7 +83,7 @@ jobs:
if: ${{ github.event.inputs.ref != 'main' }}

- name: Deploy to server (short release version)
uses: easingthemes/ssh-deploy@v3.4.3
uses: easingthemes/ssh-deploy@main
env:
ARGS: "-rltgoDzvO --delete --chown=${{ secrets.WEB_USER }}:${{ secrets.WEB_USER }}"
SOURCE: ".vitepress/dist/"
Expand Down

0 comments on commit 2584614

Please sign in to comment.