Skip to content

Commit

Permalink
Update auto-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MHuiG committed Nov 3, 2023
1 parent 840b8c0 commit 5c92575
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/auto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
with:
node-version: 16
registry-url: https://registry.npmjs.org
- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"
architecture: "x64"
# - name: Setup Python 3.7
# uses: actions/setup-python@v2
# with:
# python-version: "3.7"
# architecture: "x64"
- name: Generate Public Files
run: |
# Restore last modified time
Expand All @@ -29,19 +29,19 @@ jobs:
npm install hexo-cli -g
npm run start
- name: Run Tools
run: |
python ./.github/cache.py
# - name: Run Tools
# run: |
# python ./.github/cache.py

- name: NPM Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.mhuig_npm_token }}
run: |
node ./.github/npm-version-bump.js
cd public
npm publish --access public
rm -rf ./package.json
cd ..
# - name: NPM Publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.mhuig_npm_token }}
# run: |
# node ./.github/npm-version-bump.js
# cd public
# npm publish --access public
# rm -rf ./package.json
# cd ..


- name: Deploy to GitHub Pages
Expand All @@ -67,6 +67,6 @@ jobs:
# REMOTE_USER: ${{ secrets.REMOTE_USER }}
# TARGET: ${{ secrets.TARGET }}

- name: Refresh NPM Cache
run: |
curl -X PUT "https://registry.npmmirror.com/@mhg/volantis-community/sync?publish=false&nodeps=false"
# - name: Refresh NPM Cache
# run: |
# curl -X PUT "https://registry.npmmirror.com/@mhg/volantis-community/sync?publish=false&nodeps=false"

0 comments on commit 5c92575

Please sign in to comment.