update learning #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- 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 | |