Skip to content

Commit e3356c8

Browse files
author
gituser
committed
add release action
1 parent 48a4587 commit e3356c8

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/makedb.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: db
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
makedb:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@main
15+
16+
- name: build db
17+
run: bash makedb.sh
18+
19+
- name: remove old release
20+
env:
21+
GH_TOKEN: ${{ secrets.GTOK }}
22+
GH_REPO: ${{ github.repository }}
23+
run: gh release delete owcdb -y
24+
continue-on-error: true
25+
26+
- name: publish release
27+
env:
28+
GH_TOKEN: ${{ secrets.GTOK }}
29+
GH_REPO: ${{ github.repository }}
30+
run: >
31+
gh release create owcdb
32+
owcdb.txt
33+
--draft=false
34+
--latest
35+
-t "Community profiles DB"
36+
-n "This db is always up to date"
37+
38+

0 commit comments

Comments
 (0)