Skip to content

Commit

Permalink
feat: initial commit for untp-dia vocabulary
Browse files Browse the repository at this point in the history
  • Loading branch information
kshychko committed Nov 4, 2024
1 parent d225709 commit 8d1e3e8
Show file tree
Hide file tree
Showing 136 changed files with 25 additions and 17,885 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# documentation.

# Sample workflow for building and deploying a Jekyll site to AWS S3
name: preview (untp-dte-pages)
name: preview (untp-dia-pages)

on:
push:
branches:
- untp-dte-pages
- untp-dia-pages

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -19,7 +19,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: "untp-dte-pages"
group: "untp-dia-pages"
cancel-in-progress: true

env:
Expand All @@ -41,7 +41,7 @@ jobs:
- id: set-env
name: output a major_version for the release
run: |
major_version=$(cat _config_preview.yml | yq e '.versions.untp-dte' | cut -d. -f1)
major_version=$(cat _config_preview.yml | yq e '.versions.untp-dia' | cut -d. -f1)
echo "major_version=$major_version" >> "$GITHUB_OUTPUT"
- name: Print the major_version
run: |
Expand All @@ -50,9 +50,9 @@ jobs:
run: bundle install
- name: "Build Site"
run: |
yq -i '.baseurl="/vocabulary/untp/dte/${{ steps.set-env.outputs.major_version }}"' _config_preview.yml
yq -i '.baseurl="/vocabulary/untp/dia/${{ steps.set-env.outputs.major_version }}"' _config_preview.yml
bundle exec jekyll build --config _config_preview.yml
- name: "Deploy to AWS S3"
run: |
aws s3 sync ./_site/ s3://uncefact-vocab-preview-sam-bucket-private/vocabulary/untp/dte/${{ steps.set-env.outputs.major_version }} --cache-control max-age=604800
aws cloudfront create-invalidation --distribution-id "E32QP2QS6SXRHC" --paths "/vocabulary/untp/dte/${{ steps.set-env.outputs.major_version }}/*"
aws s3 sync ./_site/ s3://uncefact-vocab-preview-sam-bucket-private/vocabulary/untp/dia/${{ steps.set-env.outputs.major_version }} --cache-control max-age=604800
aws cloudfront create-invalidation --distribution-id "E32QP2QS6SXRHC" --paths "/vocabulary/untp/dia/${{ steps.set-env.outputs.major_version }}/*"
Loading

0 comments on commit 8d1e3e8

Please sign in to comment.