CI: add commit sha and upload artifacts #2
Workflow file for this run
This file contains 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: Upload builds | |
on: | |
push | |
jobs: | |
upload-builds-mv3: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: extension-manifest-v3 | |
steps: | |
- uses: jwalton/gh-find-current-pr@v1 | |
id: findPr | |
with: | |
state: open | |
- run: exit 1 | |
if: steps.findPr.outputs.number == null | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '19.8.1' | |
cache: 'npm' | |
cache-dependency-path: ./package-lock.json | |
- name: Install dependencies in repo root | |
run: npm ci | |
working-directory: . | |
- name: Build packages | |
run: npm run package -- --sha | |
- name: Upload builds | |
uses: actions/upload-artifact@v3 | |
id: upload | |
with: | |
name: builds | |
path: web-ext-artifacts/* | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
pr_number: ${{ steps.findPr.outputs.pr }} | |
message: | | |
Hello world ${{ steps.findPr.outputs.pr }} ! :wave: |