mirror of
https://github.com/m1ngsama/FUJI.git
synced 2025-12-25 02:56:38 +00:00
Merge pull request #72 from nbtca/Niu-820-patch-1
This commit is contained in:
commit
421ae7c130
1 changed files with 21 additions and 3 deletions
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
|
|
@ -2,7 +2,7 @@ name: main
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "dev", "feature-*"]
|
branches: ["main"]
|
||||||
paths-ignore: # 忽略的文件
|
paths-ignore: # 忽略的文件
|
||||||
- "README.md"
|
- "README.md"
|
||||||
- "LICENSE"
|
- "LICENSE"
|
||||||
|
|
@ -19,6 +19,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Latest Corepack
|
||||||
|
run: |
|
||||||
|
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||||
|
npm install -g corepack@latest
|
||||||
|
echo "After : corepack version => $(corepack --version)"
|
||||||
|
corepack enable
|
||||||
|
corepack prepare pnpm@latest --activate
|
||||||
|
echo "pnpm version => $(pnpm --version || echo 'pnpm not installed')"
|
||||||
|
|
||||||
- uses: docker/build-push-action@v6
|
- uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|
@ -34,6 +43,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Latest Corepack
|
||||||
|
run: |
|
||||||
|
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
|
||||||
|
npm install -g corepack@latest
|
||||||
|
echo "After : corepack version => $(corepack --version)"
|
||||||
|
corepack enable
|
||||||
|
corepack prepare pnpm@latest --activate
|
||||||
|
echo "pnpm version => $(pnpm --version || echo 'pnpm not installed')"
|
||||||
|
|
||||||
- name: Login
|
- name: Login
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -62,5 +80,5 @@ jobs:
|
||||||
key: ${{ secrets.ACCESS_TOKEN }}
|
key: ${{ secrets.ACCESS_TOKEN }}
|
||||||
envs: BRANCH_NAME
|
envs: BRANCH_NAME
|
||||||
script: |
|
script: |
|
||||||
cd ${{ github.ref == 'refs/heads/main' && secrets.REMOTE_PATH || secrets.REMOTE_PATH_DEVELOPMENT }}
|
cd ${{secrets.REMOTE_PATH}}
|
||||||
docker compose up --force-recreate -d --pull=always
|
docker compose up --force-recreate -d --pull=always
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue