-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (35 loc) · 1.16 KB
/
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
name: Create Release
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get version
id: get_version
uses: battila7/get-version-action@v2
- name: Create ZIP file
shell: bash
run: zip -r vatis-profiles-${{ steps.get_version.outputs.version-without-v }}.zip *.json
- name: Create release note
shell: bash
run: |
cat > CHANGELOG.txt << EOF
[Download Profiles](https://github.com/vaccfr/vatis-profiles/releases/download/${{ steps.get_version.outputs.version }}/vatis-profiles-${{ steps.get_version.outputs.version-without-v }}.zip)
---
EOF
- name: Create release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
name: vATIS Profiles ${{ steps.get_version.outputs.version-without-v }}
prerelease: false
draft: true
body_path: CHANGELOG.txt
files: |
vatis-profiles-${{ steps.get_version.outputs.version-without-v }}.zip