mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-08-05 16:23:40 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: "Build"
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install jq
|
|
run: sudo apt-get install jq
|
|
|
|
- name: Get extension version
|
|
id: vars
|
|
run: |
|
|
version=$(jq -r .version manifest.json)
|
|
echo "version=$version" >> $GITHUB_OUTPUT
|
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
|
|
- name: "web-ext build"
|
|
id: web-ext-build
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: build
|
|
source: .
|
|
filename: "rfd-affiliate-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
|
|
ignoreFiles: '[ "package.json","package-lock.json","yarn.lock" ]'
|
|
|
|
- name: "Upload Artifact"
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: "rfd-affiliate-stripper-${{steps.vars.outputs.version}}-${{steps.vars.outputs.sha_short}}.xpi"
|
|
path: ${{ steps.web-ext-build.outputs.target }}
|