diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..696fa01 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,41 @@ +name: Publish + +on: + workflow_dispatch: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Google Chrome + run: | + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + sudo dpkg -i google-chrome-stable_current_amd64.deb + + - name: Build CRX + run: | + google-chrome-stable --pack-extension="./source" + mv ./source.crx ./antigram.crx + + - name: Build Zip + run: | + mkdir antigram + cp -r ./source/* ./antigram + zip -r antigram.zip ./antigram + + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + ./antigram.crx + ./antigram.zip + tag_name: + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/source/manifest.json b/source/manifest.json index f4731c5..ac203e7 100644 --- a/source/manifest.json +++ b/source/manifest.json @@ -2,7 +2,7 @@ "name": "Antigram - Explore & Reels Blocker", "description": "Browser extension to fight back Instagram's addictive features.", "author": "aymyo", - "version": "2.0.1", + "version": "2.0.2", "manifest_version": 3, "permissions": ["storage"],