-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (29 loc) · 889 Bytes
/
main.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
name: CI
on:
push:
paths:
- '**'
- '!kurl-installer.yaml'
- '!**.md'
- '!doc/**'
- '!**.png'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 0
- name: Get tag name, if specified
run: if grep -q "/tags/" <<< "${GITHUB_REF}"; then echo ::set-output name=tag::${GITHUB_REF:10}; fi
id: get_tag
- name: Get branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: get_branch
- name: Create a release on Channel associated with the branch
run: make release
env:
REPLICATED_API_TOKEN: ${{ secrets.REPLICATED_API_TOKEN }}
REPLICATED_APP: ${{ secrets.REPLICATED_APP }}
GITHUB_BRANCH_NAME: ${{ steps.get_branch.outputs.branch }}
GITHUB_TAG_NAME: ${{ steps.get_tag.outputs.tag }}