-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.5 KB
/
manual.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
name: Manual Workflow
on:
workflow_dispatch:
inputs:
invalidations:
description: |
If set to 'true', invalidates previous upload.
default: "true"
required: true
jobs:
cdn:
runs-on: ubuntu-latest
env:
DRY_RUN: ${{ github.event.inputs.dry_run }}
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup nodejs
uses: actions/setup-node@v3
with:
node-version: 16
- name: yarn install
run: >
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
.npmrc
yarn install
- name: yarn build
run: yarn build
- name: upload latest bundle
uses: CoCreate-app/CoCreate-s3@master
with:
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
distributionId: "${{ secrets.DISTRIBUTION_ID }}"
bucket: testcrudbucket
source: ./dist
destination: /socket-client/latest
acl: public-read
invalidations: ${{ github.event.inputs.invalidations }}