Skip to content

ci: automatic release when pushing a tag #24

ci: automatic release when pushing a tag

ci: automatic release when pushing a tag #24

Workflow file for this run

name: 'Autorelease'
on:
workflow_dispatch:
workflow_call:
push:
branches: ["master"]
tags: ["v*"]
jobs:
get-version:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
VERSION: ${{ steps.get_version.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: get version
id: get_version
run: echo ::set-output name=VERSION::v$(cat manifest.json | jq -r .version)
call-build:
needs: get-version
uses: ./.github/workflows/_webext-build.yml
secrets:
signKey: ${{ secrets.AMO_SIGN_KEY }}
signSecret: ${{ secrets.AMO_SIGN_SECRET }}
call-release:
needs:
- get-version
- call-build
uses: ./.github/workflows/_release.yml
with:
tag: ${{ needs.get-version.outputs.VERSION }}