merge f-warroom #66
This file contains hidden or 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
| # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
| # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | |
| name: 测试环境-发布到oss | |
| on: | |
| push: | |
| branches: [test] | |
| workflow_dispatch: | |
| jobs: | |
| upload-to-oss: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| registry-url: https://registry.npmjs.org/ | |
| - run: rm -rf node_modules package-lock.json | |
| - run: npm install --no-cache | |
| - run: npm run upload | |
| env: | |
| CDN_ACCESS_KEY: ${{ secrets.CDN_ACCESS_KEY }} | |
| CDN_SECRET_KEY: ${{ secrets.CDN_SECRET_KEY }} | |
| CDN_BUCKET: ${{ secrets.CDN_BUCKET }} | |
| CDN_REGION: ${{ secrets.CDN_REGION }} | |
| CDN_ENDPOINT: ${{ secrets.CDN_ENDPOINT }} | |
| CDN_URL: ${{ secrets.CDN_URL }} | |
| CDN_DIR: '/test/docs' |