fix: stabilize backtrack side button layout #3
Workflow file for this run
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 Release Extension | |
| on: | |
| push: | |
| tags: | |
| - 'v*' # 只在推送到带有 v 前缀的 tag 时触发,例如 v1.0.0 | |
| jobs: | |
| build-and-release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # 允许创建 release 和上传资产 | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Get Version from Tag | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - name: Package Extension (ZIP) | |
| run: | | |
| zip -r "BilibiliFeedHistory-${{ env.VERSION }}.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| content.js \ | |
| content.css \ | |
| popup.html \ | |
| popup.js \ | |
| popup.css \ | |
| icons/ \ | |
| README.md \ | |
| LICENSE \ | |
| -x "*.DS_Store" -x ".git/*" -x ".github/*" | |
| - name: Create Release and Upload Asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "Bilibili Feed History ${{ env.VERSION }}" | |
| generate_release_notes: true # 自动生成 release notes(基于 PR) | |
| files: "BilibiliFeedHistory-${{ env.VERSION }}.zip" |