docs: add ThingsPanel v1.2.6 and ThingsVis v1.0.17 release notes #788
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - source | |
| jobs: | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Create en translation | |
| run: npm run write-translations -- --locale en | |
| - name: Build website | |
| run: npm run build | |
| - name: Compress build output | |
| run: tar -czf build.tar.gz -C build . | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build | |
| user_name: hezhuozhuo | |
| user_email: 421045249@qq.com | |
| - name: Install GitHub CLI | |
| run: | | |
| sudo apt update | |
| sudo apt install -y gh | |
| - name: Delete existing latest release (if exists) | |
| run: | | |
| gh release delete latest --yes || echo "No existing latest release" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create new latest release | |
| run: | | |
| gh release create latest build.tar.gz --title "Latest Release" --notes "Auto-generated release from GitHub Actions" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |