Skip to content

Commit

Permalink
ci: Update GitHub workflow to reuse build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Jan 13, 2025
1 parent 2dc5a6d commit 324e755
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,10 @@ jobs:

- name: 🔨 Prepare
run: |
cp training.markdown $target_source_dir/ && \
cp training.markdown $target_source_dir/index.markdown && \
cp _data/tutorials.yml $target_source_dir/_data/ && \
cp assets/img/* $target_source_dir/assets/img/
- name: 🔨 Generate _config_training_revision.yml
run: |
github_short_sha=$(git -C "$SCRIPT_DIR" rev-parse --short HEAD)
echo "training.silcer.org version is $github_short_sha"
echo "github_short_sha: ${github_short_sha}" > $target_source_dir/_config_training_revision.yml
./build.sh \
--target-source-dir=$target_source_dir \
--slicer-org-source-dir=$target_source_dir \
--prepare
- name: 💎 setup ruby
uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf # v1.204.0
Expand Down

0 comments on commit 324e755

Please sign in to comment.