-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.21 KB
/
create-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Create a release
run-name: Create release ${{ inputs.version }}
on:
# Trigger manually from https://github.com/Automattic/chatrix/actions/workflows/create-release.yml
workflow_dispatch:
inputs:
version:
description: "Release version, e.g. 1.2.3"
required: true
type: string
workflow_call:
inputs:
version:
description: "Release version, e.g. 1.2.3"
required: true
type: string
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Create artifacts
run: ./bin/create-release-artifacts.sh ${{ inputs.version }}
- name: Create release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.version }}
commit: ${{ github.sha }}
artifacts: "release/chatrix-${{ inputs.version }}.tar.gz,release/chatrix-${{ inputs.version }}.zip"
artifactErrorsFailBuild: true
draft: true