Skip to content

Commit

Permalink
Merge branch 'deploy-gh-pages' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
meganindya committed Feb 11, 2022
2 parents 75e8f46 + 3e77f45 commit 6ccec4f
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# Documentation:https://help.github.com/en/articles/workflow-syntax-for-github-actions

name: Continuous Deployment

on:
push:
branches: [develop]

jobs:
deploy:
name: Build and Deploy app to GitHub Pages

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout the code base
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
npm ci
rm -rf .npmrc
- name: Deploy to GitHub Pages
run: |
git config user.name "GitHub"
git config user.email "noreply@github.com"
git remote set-url origin https://github.com/sugarlabs/musicblocks-v4.git
npm run deploy
Loading

0 comments on commit 6ccec4f

Please # to comment.