Skip to content

Commit 5994aad

Browse files
add workflow
1 parent b2c0aac commit 5994aad

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

.github/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: Bug Fixes 🛠
7+
labels:
8+
- bug fix
9+
- title: Enhancements 🛠
10+
labels:
11+
- enhancement
12+
- title: New Features 🎉
13+
labels:
14+
- new feature
15+
- title: Other Changes
16+
labels:
17+
- "*"

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install coffeescript-compiler
13+
run: sudo apt-get install coffeescript
14+
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
20+
- name: Checkout submodules
21+
run: git submodule update --init --recursive
22+
23+
- name: Get the version
24+
id: get_version
25+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
26+
shell: bash
27+
28+
- name: Extract repository name
29+
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
30+
shell: bash
31+
32+
- name: Set zip file name
33+
run: echo "ZIP_NAME=customDataTypeGeoref.zip" >> $GITHUB_ENV
34+
35+
- name: Build and Package
36+
shell: bash
37+
run: make zip
38+
39+
- name: Release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
name: Release ${{ steps.get_version.outputs.VERSION }}
43+
draft: true
44+
generate_release_notes: true
45+
files: |
46+
build/${{ env.ZIP_NAME }}
47+
README.md

0 commit comments

Comments
 (0)