Update gitea-build.yml

This commit is contained in:
mjking 2024-07-17 15:02:09 +08:00 committed by GitHub
parent 33b3f098fa
commit e08e3394b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,16 +39,16 @@ jobs:
run: | run: |
version=$(grep 'version:' theme.yaml | sed 's/.*:\s*//') version=$(grep 'version:' theme.yaml | sed 's/.*:\s*//')
echo "version=$version" >> $GITHUB_ENV echo "version=$version" >> $GITHUB_ENV
- name: Use Node.js ${{ matrix.node-version }} # - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4 # uses: actions/setup-node@v4
with: # with:
node-version: ${{ matrix.node-version }} # node-version: ${{ matrix.node-version }}
cache: 'npm' # cache: 'npm'
- name: Install dependencies # - name: Install dependencies
run: npm install # run: npm install
# Actions构建 # # Actions构建
- name: Build # - name: Build
run: npm run actions --tag=${{ env.version }} # run: npm run actions --tag=${{ env.version }}
# # 上传构建产物zip # # 上传构建产物zip
# - name: Upload artifacts # - name: Upload artifacts