Skip to content

Commit 32944e6

Browse files
committed
introduce new github workflows
1 parent 5a8cff6 commit 32944e6

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
pg: [17, 16, 15, 14, 13, 12]
15+
name: 🐘 PostgreSQL ${{ matrix.pg }}
16+
runs-on: ubuntu-latest
17+
container: pgxn/pgxn-tools
18+
steps:
19+
- run: pg-start ${{ matrix.pg }}
20+
- uses: actions/checkout@v2
21+
- run: pg-build-test
22+

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
on:
3+
push:
4+
tags: [v*]
5+
jobs:
6+
release:
7+
name: Release on PGXN
8+
runs-on: ubuntu-latest
9+
container: pgxn/pgxn-tools
10+
env:
11+
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }}
12+
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }}
13+
steps:
14+
- name: Check out the repo
15+
uses: actions/checkout@v4
16+
- name: Bundle the Release
17+
id: bundle
18+
run: pgxn-bundle
19+
- name: Release on PGXN
20+
run: pgxn-release

0 commit comments

Comments
 (0)