forked from veltiosoft/sqlc-gen-python-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 883 Bytes
/
Copy pathrelease.yaml
File metadata and controls
35 lines (30 loc) · 883 Bytes
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
name: make
on:
release:
types: [published]
jobs:
release:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.0'
- run: make dist/sqlc-gen-python-orm.wasm
- run: make dist/sqlc-gen-python-orm.wasm
- run: |
SHA256=$(cat dist/sqlc-gen-python-orm.wasm.sha256)
cat > release.md <<- EOF
```
plugins:
- name: py
wasm:
url: https://github.com/veltiosoft/sqlc-gen-python-orm/releases/download/${GITHUB_REF}/sqlc-gen-python-orm.wasm
sha256: ${SHA256}
```
EOF
- name: Upload Github Release
run: gh release create "${GITHUB_REF}" --notes --notes-file release.md dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}