44 push :
55 branches :
66 - master
7+ workflow_dispatch :
78
89jobs :
910 release :
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 \
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 : |
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
0 commit comments