Skip to content

Commit e7f6854

Browse files
committed
added github workflows
1 parent 8648e71 commit e7f6854

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
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: "serve"

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
run-name: Release version "${{ github.event.release.tag_name }}"
3+
on:
4+
release:
5+
types: [published]
6+
branches:
7+
- main
8+
- master
9+
jobs:
10+
Supervisely-Release:
11+
if: "!github.event.release.prerelease"
12+
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
13+
secrets:
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 }}"
17+
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
18+
with:
19+
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}"
20+
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
21+
SLUG: "${{ github.repository }}"
22+
RELEASE_VERSION: "${{ github.event.release.tag_name }}"
23+
RELEASE_DESCRIPTION: "${{ github.event.release.name }}"
24+
RELEASE_TYPE: "release"
25+
SUBAPP_PATHS: "serve"

.github/workflows/release_branch.yml

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-Branch:
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: "serve"

0 commit comments

Comments
 (0)