Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0c8959e

Browse files
committed
Add Release GHA Workflow
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
1 parent 8cb1181 commit 0c8959e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: "Branch"
8+
required: true
9+
default: "main"
10+
tag:
11+
description: "Release Tag"
12+
13+
jobs:
14+
ship:
15+
name: Ship
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
cache: 'yarn'
23+
- run: yarn install --frozen-lockfile
24+
- name: Package
25+
run: yarn package
26+
- name: Ship it
27+
if: ${{ github.event.inputs.tag != '' }} # don't release if no tag is specified
28+
uses: ncipollo/release-action@v1
29+
with:
30+
artifacts: "./dev-envs.xpi,./dev-envs-source.zip"
31+
prerelease: true
32+
draft: false
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
tag: ${{ github.event.inputs.tag }}
35+
commit: ${{ github.event.inputs.branch }}
36+

0 commit comments

Comments
 (0)