Skip to content

Commit af7c1e4

Browse files
Update workflows
1 parent 2bd2bf3 commit af7c1e4

File tree

4 files changed

+52
-31
lines changed

4 files changed

+52
-31
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish app to production
2+
run-name: Publish app to production
3+
on: workflow_dispatch
4+
jobs:
5+
Supervisely-Release:
6+
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
7+
secrets:
8+
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
9+
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
10+
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
11+
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
12+
with:
13+
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
14+
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
15+
SLUG: "${{ github.repository }}"
16+
RELEASE_VERSION: ""
17+
RELEASE_DESCRIPTION: ""
18+
RELEASE_TYPE: "publish"
19+
SUBAPP_PATHS: "__ROOT_APP__"

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Supervisely release
2-
run-name: Supervisely ${{ github.repository }} app release
1+
name: Release
2+
run-name: Release version "${{ github.event.release.tag_name }}"
33
on:
44
release:
55
types: [published]
@@ -8,16 +8,18 @@ on:
88
- master
99
jobs:
1010
Supervisely-Release:
11+
if: "!github.event.release.prerelease"
1112
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
1213
secrets:
13-
SUPERVISELY_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
14+
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
15+
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
16+
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
1417
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
1518
with:
16-
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
19+
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}"
20+
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
1721
SLUG: "${{ github.repository }}"
1822
RELEASE_VERSION: "${{ github.event.release.tag_name }}"
19-
RELEASE_TITLE: "${{ github.event.release.name }}"
20-
IGNORE_SLY_RELEASES: 1
21-
RELEASE_WITH_SLUG: 1
22-
CHECK_PREV_RELEASES: 1
23+
RELEASE_DESCRIPTION: "${{ github.event.release.name }}"
24+
RELEASE_TYPE: "release"
2325
SUBAPP_PATHS: "__ROOT_APP__"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release branch
2+
run-name: Release "${{ github.ref_name }}" branch
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
- master
8+
jobs:
9+
Supervisely-Release:
10+
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
11+
secrets:
12+
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
13+
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
14+
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
15+
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
16+
with:
17+
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}"
18+
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
19+
SLUG: "${{ github.repository }}"
20+
RELEASE_VERSION: "${{ github.ref_name }}"
21+
RELEASE_DESCRIPTION: "'${{ github.ref_name }}' branch release"
22+
RELEASE_TYPE: "release-branch"
23+
SUBAPP_PATHS: "__ROOT_APP__"

.github/workflows/release_dev.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)