mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-15 08:07:08 +00:00
40 lines
1,015 B
YAML
40 lines
1,015 B
YAML
name: "Firefox Version"
|
|
on:
|
|
create:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: 'master'
|
|
submodules: 'recursive'
|
|
|
|
- name: Install Jsonnet
|
|
run: sudo snap install jsonnet
|
|
|
|
# https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
|
|
- name: "Set output"
|
|
id: vars
|
|
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
|
|
|
|
- name: Generate Firefox manifest.json
|
|
run: make firefox
|
|
|
|
- name: "web-ext build"
|
|
id: web-ext-build-firefox
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: build
|
|
source: extension
|
|
|
|
- name: "Upload Artifact"
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: firefox-rust-search-extension-${{ steps.vars.outputs.tag }}
|
|
path: ${{ steps.web-ext-build-firefox.outputs.target }}
|