improve docs #4
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 chrome browser extension | |
| on: | |
| push: | |
| workflow_dispatch: | |
| env: | |
| ARTIFACT_NAME: ${{ github.ref_name == 'master' && 'sanitize-amazon' || format('sanitize-amazon_{0}_{1}', github.ref_name, github.run_started_at) }} | |
| jobs: | |
| build: | |
| name: build crx | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: git checkout | |
| uses: actions/checkout@v4 | |
| - name: setup go-crx3 | |
| run: | | |
| wget https://github.com/mmadfox/go-crx3/releases/download/v1.6.0/go-crx3_1.6.0_linux_amd64.tar.gz | |
| tar xvf go-crx3_1.6.0_linux_amd64.tar.gz | |
| chmod +x go-crx3 | |
| # TODO: use `-p key.pem` to sign crx by private key | |
| ./go-crx3 pack "$PWD" -o "$PWD/sanitize-amazon.crx" | |
| - name: upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }} | |
| path: "sanitize-amazon.crx" |