Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiPetukhov committed Aug 12, 2023
1 parent 440d8be commit 6803320
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 16 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish app to production
run-name: Publish app to production
on: workflow_dispatch
jobs:
Supervisely-Release:
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
secrets:
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
SLUG: "${{ github.repository }}"
RELEASE_VERSION: ""
RELEASE_DESCRIPTION: ""
RELEASE_TYPE: "publish"
SUBAPP_PATHS: "supervisely/train, supervisely/serve, supervisely/export_weights, __ROOT_APP__"
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Supervisely release
run-name: Supervisely ${{ github.repository }} app release
name: Release
run-name: Release version "${{ github.event.release.tag_name }}"
on:
release:
types: [published]
Expand All @@ -8,16 +8,18 @@ on:
- master
jobs:
Supervisely-Release:
if: "!github.event.release.prerelease"
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
secrets:
SUPERVISELY_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}"
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
SLUG: "${{ github.repository }}"
RELEASE_VERSION: "${{ github.event.release.tag_name }}"
RELEASE_TITLE: "${{ github.event.release.name }}"
IGNORE_SLY_RELEASES: 1
RELEASE_WITH_SLUG: 1
CHECK_PREV_RELEASES: 1
RELEASE_DESCRIPTION: "${{ github.event.release.name }}"
RELEASE_TYPE: "release"
SUBAPP_PATHS: "supervisely/train, supervisely/serve, supervisely/export_weights, __ROOT_APP__"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Supervisely release
run-name: Supervisely ${{ github.repository }} app release
name: Release branch
run-name: Release "${{ github.ref_name }}" branch
on:
push:
branches-ignore:
Expand All @@ -9,15 +9,15 @@ jobs:
Supervisely-Release:
uses: supervisely-ecosystem/workflows/.github/workflows/common.yml@master
secrets:
SUPERVISELY_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
SUPERVISELY_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_DEV_API_TOKEN }}"
SUPERVISELY_PRIVATE_DEV_API_TOKEN: "${{ secrets.SUPERVISELY_PRIVATE_DEV_API_TOKEN }}"
SUPERVISELY_PROD_API_TOKEN: "${{ secrets.SUPERVISELY_PROD_API_TOKEN }}"
GH_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
SUPERVISELY_SERVER_ADDRESS: "${{ vars.SUPERVISELY_DEV_SERVER_ADDRESS }}"
SUPERVISELY_PROD_SERVER_ADDRESS: "${{ vars.SUPERVISELY_PROD_SERVER_ADDRESS }}"
SLUG: "${{ github.repository }}"
RELEASE_VERSION: "${{ github.ref_name }}"
RELEASE_TITLE: "${{ github.ref_name }} branch release"
IGNORE_SLY_RELEASES: 1
RELEASE_WITH_SLUG: 1
CHECK_PREV_RELEASES: 0
RELEASE_DESCRIPTION: "'${{ github.ref_name }}' branch release"
RELEASE_TYPE: "release-branch"
SUBAPP_PATHS: "supervisely/train, supervisely/serve, supervisely/export_weights, __ROOT_APP__"

0 comments on commit 6803320

Please sign in to comment.