-
Notifications
You must be signed in to change notification settings - Fork 7
27 lines (24 loc) · 823 Bytes
/
test.yml
File metadata and controls
27 lines (24 loc) · 823 Bytes
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
name: Serverless Devs Astro Website CD
on:
push:
branches: [astro]
jobs:
serverless-devs-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm install -g @serverless-devs/s@3.1.5
- run: s config add --AccessKeyID ${{secrets.ACCESSKEYID}} --AccessKeySecret ${{secrets.ACCESSKEYSECRET}} --AccountID ${{secrets.ACCOUNTID}} -a default -f
- run: rm -rf .git
- run: rm -rf .github
- run: rm -rf node_modules
- run: s deploy -t s-deploy.yaml -y
- run: s info -t s-deploy.yaml -y
# - run: s deploy -t s.oss.yaml -y
# - run: s info -t s.oss.yaml -y