From 56f716b03ffad17d1207ac51d9352d4b33cc2b0a Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Thu, 10 Nov 2022 20:00:57 +0000 Subject: [PATCH] Update Spaces workflow --- .github/workflows/do-spaces-workflow.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/do-spaces-workflow.yml b/.github/workflows/do-spaces-workflow.yml index 8130982..e74a8e5 100644 --- a/.github/workflows/do-spaces-workflow.yml +++ b/.github/workflows/do-spaces-workflow.yml @@ -2,17 +2,21 @@ name: Deploy to DigitalOcean Spaces on: push +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3.5.0 + - name: Use Node.js + uses: actions/setup-node@v3 with: - node-version-file: ".nvmrc" + node-version-file: .nvmrc cache: npm - name: Setup NPM @@ -40,7 +44,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_ACCESS_KEY }} AWS_DEFAULT_REGION: ${{ secrets.SPACES_REGION }} - - name: Leave a comment + - name: Leave a comment on commit run: npm run deploy:spaces:comment env: REPO_NAME: ${{ github.repository }}