Skip to content

Commit

Permalink
Merge branch 'circleci-deploy' into lib
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed May 6, 2024
2 parents 3063207 + e638c79 commit 1ca83de
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -36,3 +53,9 @@ workflows:
filters:
branches:
only: lib
- commit:
requires:
- build
filters:
branches:
only: lib

0 comments on commit 1ca83de

Please sign in to comment.