-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0ede9c
commit e638c79
Showing
1 changed file
with
28 additions
and
5 deletions.
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 |
---|---|---|
|
@@ -13,21 +13,38 @@ jobs: | |
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc | ||
echo "@france-ioi:registry=https://npm.pkg.github.com/" >> ~/.npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc | ||
cat ~/.npmrc | ||
name: "Setup Node auth token" | ||
- run: | ||
command: git submodule update --init | ||
name: Fetch submodules | ||
- run: | ||
command: yarn install --frozen-lockfile | ||
# - node/install-packages: | ||
# pkg-manager: yarn | ||
- node/install-packages: | ||
pkg-manager: yarn | ||
- run: | ||
command: cp config.json.template config.json | ||
name: Copy config | ||
- run: | ||
command: yarn build-lib | ||
name: Build Codecast lib | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- 'build' | ||
commit: | ||
machine: true | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
command: | | ||
ls -asl build | ||
git config credential.helper cache | ||
git config user.email "[email protected]" | ||
git config user.name "Deployment" | ||
git clone [email protected]:France-ioi/bebras-modules.git | ||
cp build/index.js bebras-modules/ext/codecast/7.4/index.js | ||
cp build/index.css bebras-modules/ext/codecast/7.4/index.css | ||
cp build/index.worker.worker.js bebras-modules/ext/codecast/7.4/index.worker.worker.js | ||
git commit --allow-empty -m "Upgrade Codecast 7.4" | ||
workflows: | ||
deploy: | ||
|
@@ -36,3 +53,9 @@ workflows: | |
filters: | ||
branches: | ||
only: lib | ||
- commit: | ||
requires: | ||
- build | ||
filters: | ||
branches: | ||
only: lib |