-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (39 loc) · 1.13 KB
/
publish-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
name: Create Release
on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag Name'
required: true
prerelease:
description: 'Pre-release?'
required: true
branchName:
description: 'Branch Name'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branchName }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.event.inputs.tag_name }}
release_name: ${{ github.event.inputs.tag_name }}
draft: false
prerelease: ${{ github.event.inputs.prerelease }}
- name: Checkout code at tag
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.tag_name }}
- name: Build Project
run: |
# add your build commands here, depending on your project's requirements.
echo "Build project here"