mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 23:57:07 +00:00
37 lines
No EOL
955 B
YAML
37 lines
No EOL
955 B
YAML
name: "Chromium Version"
|
|
on:
|
|
create:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v1
|
|
|
|
- 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 Chrome manifest.json
|
|
run: make manifest browser=chrome
|
|
|
|
- name: "web-ext build"
|
|
id: web-ext-build-chrome
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: build
|
|
source: extension
|
|
|
|
- name: "Upload Artifact"
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: chrome-rust-search-extension-${{ steps.vars.outputs.tag }}
|
|
path: ${{ steps.web-ext-build-chrome.outputs.target }} |