Skip to content

Commit 729c3e6

Browse files
committed
Merge branch 'master' into chore/separate_express
2 parents bc0d55e + f49a87b commit 729c3e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+6700
-1558
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
workflow_dispatch:
78

89
jobs:
910
release:
@@ -23,7 +24,7 @@ jobs:
2324
node-version: ${{ matrix.node }}
2425

2526
- name: Get version before
26-
run: echo ::set-env name=VERSION_BEFORE::$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)
27+
run: echo "VERSION_BEFORE=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)" >> $GITHUB_ENV
2728

2829
- name: Release on GitHub
2930
run: npx semantic-release -p \
@@ -34,7 +35,7 @@ jobs:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3536

3637
- name: Get version after
37-
run: echo ::set-env name=VERSION_AFTER::$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)
38+
run: echo "VERSION_AFTER=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)" >> $GITHUB_ENV
3839

3940
- name: Check version difference
4041
run: |
@@ -67,7 +68,7 @@ jobs:
6768
name: has-new-release
6869

6970
- name: Check for new release
70-
run: echo ::set-env name=HAS_NEW_RELEASE::$(cat has-new-release/has-new-release)
71+
run: echo "HAS_NEW_RELEASE=$(cat has-new-release/has-new-release)" >> $GITHUB_ENV
7172

7273
- uses: actions/checkout@v2
7374
if: env.HAS_NEW_RELEASE == 1
@@ -91,13 +92,13 @@ jobs:
9192
run: |
9293
npm ci
9394
npm run dist
94-
tar -czvf pg-api-linux.tar.gz -C ./bin start-linux
95-
tar -czvf pg-api-macos.tar.gz -C ./bin start-macos
96-
tar -czvf pg-api-windows.tar.gz -C ./bin start-win.exe
95+
tar -czvf pg-api-linux.tar.gz -C ./bin pg-api-linux
96+
tar -czvf pg-api-macos.tar.gz -C ./bin pg-api-macos
97+
tar -czvf pg-api-windows.tar.gz -C ./bin pg-api-win.exe
9798
9899
- name: Get upload url
99100
if: env.HAS_NEW_RELEASE == 1
100-
run: echo ::set-env name=UPLOAD_URL::$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .upload_url -r)
101+
run: echo "UPLOAD_URL=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .upload_url -r)" >> $GITHUB_ENV
101102

102103
- name: Upload linux release asset
103104
if: env.HAS_NEW_RELEASE == 1
@@ -133,7 +134,7 @@ jobs:
133134
asset_content_type: application/gzip
134135

135136
- name: Get version
136-
run: echo ::set-env name=VERSION::$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)
137+
run: echo "VERSION=$(curl -s https://api.github.com/repos/supabase/pg-api/releases/latest | jq .name -r)" >> $GITHUB_ENV
137138

138139
- name: Upload image to Docker Hub
139140
if: env.HAS_NEW_RELEASE == 1

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@ typings/
105105

106106
# TypeScript output files
107107
dist/
108+
109+
# Binaries
110+
bin/

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# docker run -t -i -p8080:8080 pg-api
33

44
FROM debian:stable-slim
5-
COPY ./bin/start-linux /bin/
5+
COPY ./bin/pg-api-linux /bin/
66
ENV PG_API_PORT=8080
7-
ENTRYPOINT "/bin/start-linux"
8-
EXPOSE 8080
7+
ENTRYPOINT "/bin/pg-api-linux"
8+
EXPOSE 8080

0 commit comments

Comments
 (0)