From a20e61049fccb5183febe250baf45f282da44d80 Mon Sep 17 00:00:00 2001 From: Arthur Lobo <64273139+ArthurLobopro@users.noreply.github.com> Date: Thu, 9 May 2024 15:22:08 -0300 Subject: [PATCH 1/3] Create publish.yml --- .github/workflows/publish.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b113830 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,39 @@ +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 + with: + files: | + ./antigram.crx + ./antigram.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 91579ae117b741c320502d6a5ae754a274dfc999 Mon Sep 17 00:00:00 2001 From: Arthur Lobo <64273139+ArthurLobopro@users.noreply.github.com> Date: Thu, 9 May 2024 15:25:16 -0300 Subject: [PATCH 2/3] Update publish.yml --- .github/workflows/publish.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b113830..696fa01 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,25 +15,27 @@ jobs: - 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 + 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 + 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 + 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 + ./antigram.crx + ./antigram.zip + tag_name: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From db4af8a263f3bc0d6ecac604a23c49671c7e70ee Mon Sep 17 00:00:00 2001 From: Arthur Lobo <64273139+ArthurLobopro@users.noreply.github.com> Date: Thu, 9 May 2024 15:25:53 -0300 Subject: [PATCH 3/3] Update manifest.json --- source/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"],