mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-29 16:26:14 +08:00
Dedicated test workflow to run on PRs (#172)
This commit is contained in:
committed by
GitHub
parent
446775978f
commit
958f67c802
12
.github/workflows/do-spaces-workflow.yml
vendored
12
.github/workflows/do-spaces-workflow.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Test and Deploy to DigitalOcean Spaces
|
||||
name: Test and deploy to DigitalOcean Spaces
|
||||
|
||||
on: push
|
||||
|
||||
@@ -18,11 +18,11 @@ jobs:
|
||||
with:
|
||||
node-version: "${{ steps.nvm.outputs.NVMRC }}"
|
||||
|
||||
- name: npm ci, test, and build
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
npm run build
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build tool
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy commit to DigitalOcean Spaces
|
||||
run: aws s3 sync ./dist s3://${{ secrets.SPACES_BUCKET }}/commits/nginxconfig/${{ github.sha }} --endpoint=https://${{ secrets.SPACES_REGION }}.digitaloceanspaces.com --acl public-read --content-encoding utf8
|
||||
|
Reference in New Issue
Block a user