Update Spaces workflow
parent
63aacfc644
commit
56f716b03f
|
@ -2,17 +2,21 @@ name: Deploy to DigitalOcean Spaces
|
||||||
|
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3.5.0
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version-file: .nvmrc
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Setup NPM
|
- name: Setup NPM
|
||||||
|
@ -40,7 +44,7 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: ${{ secrets.SPACES_REGION }}
|
AWS_DEFAULT_REGION: ${{ secrets.SPACES_REGION }}
|
||||||
|
|
||||||
- name: Leave a comment
|
- name: Leave a comment on commit
|
||||||
run: npm run deploy:spaces:comment
|
run: npm run deploy:spaces:comment
|
||||||
env:
|
env:
|
||||||
REPO_NAME: ${{ github.repository }}
|
REPO_NAME: ${{ github.repository }}
|
||||||
|
|
Loading…
Reference in New Issue