upd: release report 2025 #72
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
| name: Build and Upload to CDN | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-upload: | |
| env: | |
| CDN_URL: ${{ secrets.CDN_URL }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm install cos-nodejs-sdk-v5 --no-save | |
| - name: Print dist/index.html after build | |
| run: cat dist/index.html | |
| - name: Upload to COS | |
| run: node scripts/upload-to-cos.cjs | |
| env: | |
| COS_SECRET_ID: ${{ secrets.COS_SECRET_ID }} | |
| COS_SECRET_KEY: ${{ secrets.COS_SECRET_KEY }} | |
| COS_BUCKET: ${{ secrets.COS_BUCKET }} | |
| COS_REGION: ${{ secrets.COS_REGION }} | |
| COS_DOMAIN: ${{ secrets.COS_DOMAIN }} | |
| - name: Print dist/index.html after upload | |
| run: cat dist/index.html |