-
Notifications
You must be signed in to change notification settings - Fork 106
44 lines (37 loc) · 1.1 KB
/
release-namadillo.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
name: Create Namadillo draft release
on:
workflow_dispatch:
inputs:
INCREMENT:
required: true
type: string
default: "patch"
description: "Version increment (major/minor/patch etc.)"
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./apps/namadillo
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install yarn dependencies
uses: ./.github/actions/yarn-cache
- name: Restore Rust cache
uses: ./.github/actions/rust-cache
with:
cache-name: build
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Build Namadillo
run: yarn build
- name: Configure git identity
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Create a draft release
run: npx release-it --increment $INCREMENT
env:
INCREMENT: ${{ inputs.INCREMENT }}
GITHUB_TOKEN: ${{ github.token }}