rust-search-extension/.github/workflows/main.yml
2019-11-01 21:49:47 +08:00

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 }}