From d63f894134e21fa43c0939a38efd16f1d94292e7 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Fri, 11 Aug 2023 11:41:53 +0200 Subject: [PATCH] =?UTF-8?q?construction=20et=20upload=20automatique=20de?= =?UTF-8?q?=20l'extension=20pour=20pr=C3=A9visualisation=20dans=20les=20pr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr.yaml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8d99153..aafa02c 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,4 +1,4 @@ -name: Sign webextension +name: "Construction de l'extension" on: [pull_request] defaults: @@ -10,10 +10,25 @@ jobs: name: web-ext lint and build runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '20' - run: npm install --global web-ext - run: web-ext lint --self-hosted --warnings-as-errors - - run: web-ext build \ No newline at end of file + - run: web-ext build + - run: cp web-ext-artifacts/*xpi ophirofox.xpi + - uses: actions/upload-artifact@v3 + id: upload + with: + name: ophirofox.xpi + path: ophirofox.xpi + - name: Create or update comment + uses: peter-evans/create-or-update-comment@v3 + with: + comment-id: ${{ steps.fc.outputs.comment-id }} + issue-number: ${{ github.event.pull_request.number }} + body: | + Voilà l'extension à télécharger pour tester: https://github.com/lovasoa/ophirofox/pull/${{ github.event.pull_request.number }}/checks + Cliquez sur "Construction de l'extension" puis sur `ophirofox.xpi` +