-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (51 loc) · 1.66 KB
/
build-testing.yaml
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
56
57
58
59
60
61
name: Build static testing
on:
workflow_dispatch:
inputs:
kuberta_system:
jobs:
deploy:
name: Build testing
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: docker://quay.csssr.cloud/csssr/kuberta-init-workflow:v1
- name: Download CSSSR actions
uses: actions/checkout@v4
with:
repository: CSSSR/actions
ssh-key: ${{ secrets.DOWNLOAD_ACTIONS_SSH_KEY }}
path: actions
- uses: actions/checkout@v4
with:
path: blog
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'
scope: '@csssr'
- name: Install dependencies
working-directory: blog
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_REGISTRY_TOKEN }}
- uses: docker://quay.csssr.cloud/csssr/github-info:v1
id: gh
- name: Build testing
working-directory: blog
run: yarn build
env:
BLOG_HOST: https://${{ steps.gh.outputs.releaseID }}.csssr-new-blog.csssr.cloud
COM_HOST: https://master.com.csssr.cloud
- name: Import secrets
id: secrets
uses: ./actions/get-aws-s3-upload-creds/v1beta1
with:
VAULT_JWT_KEY: ${{secrets.VAULT_JWT_KEY}}
- uses: ./actions/upload-static/v1beta1
with:
project-id: csssr-new-blog
files: ./blog/out
auth: 'aws:${{steps.secrets.outputs.AWS_ACCESS_KEY_ID}}:${{steps.secrets.outputs.AWS_SECRET_ACCESS_KEY}}:${{steps.secrets.outputs.AWS_SESSION_TOKEN}}'