Новый виды условных шагов #6
@@ -9,16 +9,20 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: frontend
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js 22
|
- name: Set up Node.js 22
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
cache-dependency-path: frontend/package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -37,8 +41,8 @@ jobs:
|
|||||||
- name: Upload .sppkg artifact
|
- name: Upload .sppkg artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: order-read-status-sppkg
|
name: approval-route-admin-sppkg
|
||||||
path: sharepoint/solution/order-read-status.sppkg
|
path: frontend/sharepoint/solution/approval-route-admin.sppkg
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
- name: Install CLI for Microsoft 365
|
- name: Install CLI for Microsoft 365
|
||||||
@@ -61,10 +65,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload & Deploy to App Catalog
|
- name: Upload & Deploy to App Catalog
|
||||||
env:
|
env:
|
||||||
SOLUTION_ID: "97bf1935-1417-432e-bf37-c2bc4dd1c66a"
|
SOLUTION_ID: "ce823ddf-e35c-460f-a92d-ddb4ef5fc494"
|
||||||
CATALOG_SITE: "https://tnsukz.sharepoint.com/sites/appcatalog"
|
CATALOG_SITE: "https://tnsukz.sharepoint.com/sites/appcatalog"
|
||||||
SPPKG: "sharepoint/solution/order-read-status.sppkg"
|
SPPKG: "sharepoint/solution/approval-route-admin.sppkg"
|
||||||
FILE_NAME: "order-read-status.sppkg"
|
FILE_NAME: "approval-route-admin.sppkg"
|
||||||
run: |
|
run: |
|
||||||
# Получаем токен через уже аутентифицированный m365 CLI
|
# Получаем токен через уже аутентифицированный m365 CLI
|
||||||
TOKEN=$(m365 util accesstoken get --resource https://tnsukz.sharepoint.com --output text)
|
TOKEN=$(m365 util accesstoken get --resource https://tnsukz.sharepoint.com --output text)
|
||||||
|
|||||||
Reference in New Issue
Block a user