-
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.58 KB
/
workflow.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
46
47
48
49
50
name: BrewDB
on:
push:
branches:
- main
- 'feature/**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Convert to MariaDB
uses: enflo/curl-action@master
with:
curl: -F files[][email protected] https://www.rebasedata.com/api/v1/convert?outputFormat=mariadb&errorResponse=zip -o MariaDB.zip
- name: Convert to Postgres
uses: enflo/curl-action@master
with:
curl: -F files[][email protected] https://www.rebasedata.com/api/v1/convert?outputFormat=postgresql&errorResponse=zip -o Postgres.zip
- name: Convert to MySQL
uses: enflo/curl-action@master
with:
curl: -F files[][email protected] https://www.rebasedata.com/api/v1/convert?outputFormat=mysql&errorResponse=zip -o MySQL.zip
- name: Convert to Excel
uses: enflo/curl-action@master
with:
curl: -F files[][email protected] https://www.rebasedata.com/api/v1/convert?outputFormat=xlsx&errorResponse=zip -o Excel.zip
- name: Tag release
id: tag_release
uses: mathieudutour/[email protected]
with:
custom_tag: '${{ github.run_number }}'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_release.outputs.new_tag }}
name: ${{ steps.tag_release.outputs.new_tag }}
body: ${{ steps.tag_release.outputs.changelog }}
artifacts: "**/*.zip"