-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
319 additions
and
1,059 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 |
---|---|---|
|
@@ -13,34 +13,31 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install rsync | ||
run: sudo apt-get install rsync -y | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2.4.0 | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: true | ||
|
||
- name: pnpm i | ||
run: pnpm i | ||
|
||
- name: Set Debug Environment Variable | ||
run: echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV | ||
|
||
- name: build | ||
run: npx craco build | ||
|
||
- name: Deploy to Server | ||
uses: easingthemes/[email protected] | ||
version: latest | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} | ||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
REMOTE_USER: root | ||
SOURCE: /build | ||
TARGET: /www/temp | ||
node-version: 18 | ||
cache: pnpm | ||
- name: Install dependencies with pnpm | ||
run: pnpm install | ||
|
||
- name: Run build task | ||
env: | ||
CI: false | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
run: pnpm sentry | ||
|
||
# - name: Deploy to Server | ||
# uses: easingthemes/[email protected] | ||
# with: | ||
# SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} | ||
# REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
# REMOTE_USER: root | ||
# SOURCE: /build | ||
# TARGET: /www/temp |
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
Oops, something went wrong.