-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.23 KB
/
typespec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Typespec_Validation
on:
push:
branches:
- '**'
paths :
- 'typespec/**'
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'typespec/**'
permissions:
contents: read
jobs:
typespec_validation:
name: validate typespec files
runs-on: ubuntu-latest
steps:
- name : Checkout
uses : actions/checkout@v4
- name : Setup Node.js environment
uses : actions/setup-node@v4
with :
node-version : '20.9.0'
- name : Install tsp
run : npm install -g @typespec/[email protected]
- name : Validate tsp files
run : |
cd typespec
tsp install
tsp compile .
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{secrets.TOWER_CI_AWS_ACCESS}}
aws-secret-access-key: ${{secrets.TOWER_CI_AWS_SECRET}}
aws-region: eu-west-1
- name : Login to Amazon ECR
id : login-ecr
uses : aws-actions/amazon-ecr-login@v1
- name: Release docs
if: "contains(github.event.head_commit.message, '[release docs]')"
run: |
bash typespec/tag-and-push-docs.sh