mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-15 08:07:08 +00:00
31 lines
767 B
YAML
31 lines
767 B
YAML
name: "build"
|
|
on:
|
|
create:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v1
|
|
|
|
# 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: "web-ext build"
|
|
id: web-ext-build
|
|
uses: kewisch/action-web-ext@v1
|
|
with:
|
|
cmd: build
|
|
source: extension
|
|
|
|
- name: "Upload Artifact"
|
|
uses: actions/upload-artifact@master
|
|
with:
|
|
name: rust-search-extension-${{ steps.vars.outputs.tag }}
|
|
path: ${{ steps.web-ext-build.outputs.target }}
|