Skip to content

Commit

Permalink
feat: v4.30.8
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Nov 19, 2023
1 parent 28d7c04 commit 0c5769a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 35 deletions.
63 changes: 29 additions & 34 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ jobs:
name: Deploy to server
runs-on: ubuntu-latest
steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Install pnpm
# uses: pnpm/action-setup@v2
# with:
# version: 8

# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 20
# cache: 'pnpm'

# - name: Install dependencies
# run: pnpm install --frozen-lockfile

# - name: SSR build
# run: pnpm run build
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

# - name: Release branch
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: release
# publish_dir: ./dist
- name: Checkout
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: SSR build
run: pnpm run build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- name: Release branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: release
publish_dir: ./dist

- name: Exec deploy script with SSH
uses: appleboy/ssh-action@master
Expand All @@ -48,9 +48,4 @@ jobs:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
node -v
pnpm -v
docker -v
which pm2
sh ${{ secrets.DEPLOY_ROOT_PATH }}/scripts/deploy.sh
script: sh ${{ secrets.DEPLOY_ROOT_PATH }}/scripts/deploy.sh
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "surmon.me",
"version": "4.30.7",
"version": "4.30.8",
"description": "Surmon.me blog",
"author": "Surmon",
"license": "MIT",
Expand Down

0 comments on commit 0c5769a

Please sign in to comment.