Skip to content

Commit

Permalink
Debug Github actions IX
Browse files Browse the repository at this point in the history
  • Loading branch information
yentsun committed Mar 21, 2024
1 parent d46b649 commit 2b163c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ on:
- develop

jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Get version
run: |
version=$(node -p "require('./package.json').version")
echo "CURRENT_VERSION=$version" >> $GITHUB_ENV
- name: Install
run: npm ci

- name: Build
run: |
npm ci
npm run build
version=$(node -p "require('./package.json').version")
REACT_APP_VERSION=$version npm run build
- name: Install static-deploy-tool
run: npm i -g static-deploy-tool
Expand All @@ -29,6 +27,6 @@ jobs:
env:
OSS_AK: ${{ secrets.OSS_AK }}
OSS_SK: ${{ secrets.OSS_SK }}
OSS_REGION: ${{ secrets.OSS_REGION }}
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
OSS_REGION: ${{ vars.OSS_REGION }}
OSS_BUCKET: ${{ vars.OSS_BUCKET }}
OSS_ENDPOINT: oss-accelerate.aliyuncs.com
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "REACT_APP_VERSION=$CURRENT_VERSION react-scripts build",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"version": "echo $npm_package_version"
},
Expand Down

0 comments on commit 2b163c4

Please sign in to comment.