Skip to content

Commit

Permalink
construction et upload automatique de l'extension pour prévisualisati…
Browse files Browse the repository at this point in the history
…on dans les pr
  • Loading branch information
lovasoa authored Aug 11, 2023
1 parent 95cea3d commit d63f894
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sign webextension
name: "Construction de l'extension"
on: [pull_request]

defaults:
Expand All @@ -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
- 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`

0 comments on commit d63f894

Please sign in to comment.