-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'deploy-gh-pages' into develop
- Loading branch information
Showing
3 changed files
with
442 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
Oops, something went wrong.