-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- feature: added cicd for production visor
- Loading branch information
1 parent
21e5022
commit 9e17977
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Release production | ||
|
||
on: | ||
# push: | ||
# branches: | ||
# - 'main' | ||
# tags: | ||
# - '[0-9]+.[0-9]+.[0-9]+' | ||
push: | ||
branches: | ||
- 'agallardol/ci-production' | ||
|
||
defaults: | ||
run: | ||
working-directory: ./ | ||
|
||
jobs: | ||
release-shinkai-visor: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
check-latest: false | ||
registry-url: https://registry.npmjs.org | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm cache verify | ||
npm ci --no-audit --prefer-offline | ||
- name: Run NX build on shinkai-visor | ||
run: npx nx build shinkai-visor --skip-nx-cache | ||
env: | ||
# VERSION: ${{ github.ref }}.${{github.run_number}} | ||
VERSION: 0.0.0.${{github.run_number}} | ||
NAME_PREFIX: '' | ||
DESCRIPTION_PREFIX: '' | ||
PUBLIC_KEY: ${{ secrets.CHROME_EXTENSION_PUBLIC_KEY }} | ||
|
||
- name: Zip extension | ||
run: cd ./dist/apps && zip -r shinkai-visor.zip shinkai-visor | ||
|
||
- name: Upload & Release | ||
uses: mnao305/[email protected] | ||
with: | ||
file-path: dist/apps/shinkai-visor.zip | ||
extension-id: ${{ secrets.CHROME_EXTENSION_ID }} | ||
client-id: ${{ secrets.CHROME_CLIENT_ID }} | ||
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
publish: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters