diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e9d8943cd..576fcbede 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -7,10 +7,8 @@ name: Deploy site preview to AWS S3 on: - # Runs on pull requests against main branch - pull_request: - branches: - - main + # Manually run the deployment + workflow_dispatch # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -44,6 +42,6 @@ jobs: - name: "Build Site" run: JEKYLL_ENV=production 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/ --cache-control max-age=604800 + run: aws s3 sync ./_site/ s3://uncefact-vocab-preview-sam-bucket-private/D22B --delete --cache-control max-age=604800 - name: "Create CloudFront invalidation" - run: aws cloudfront create-invalidation --distribution-id "E32QP2QS6SXRHC" --paths "/*" + run: aws cloudfront create-invalidation --distribution-id "E32QP2QS6SXRHC" --paths "/D22B/*" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aca5ebf09..cf6d50573 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - name: "Build Site" run: JEKYLL_ENV=production bundle exec jekyll build --config _config.yml - name: "Deploy to AWS S3" - run: aws s3 sync ./_site/ s3://uncefact-vocab-preview-sam-bucket-private/ --cache-control max-age=604800 + run: aws s3 sync ./_site/ s3://vocabulary-uncefact-sam-private/D22B --delete --cache-control max-age=604800 - name: "Create CloudFront invalidation" - run: aws cloudfront create-invalidation --distribution-id "E1RCVDSPUMB7H2" --paths "/*" + run: aws cloudfront create-invalidation --distribution-id "E1RCVDSPUMB7H2" --paths "/D22B/*" diff --git a/_config.yml b/_config.yml index e92e708de..133d479c1 100644 --- a/_config.yml +++ b/_config.yml @@ -1,12 +1,12 @@ # Site settings title: Vocabulary UNECE -baseurl: "" # the subpath of your site, e.g. /blog +baseurl: "/D22B" # the subpath of your site, e.g. /blog -dataSet: "dataset:'22B'" +dataSet: "dataset:'D22B'" versions: bsp: D22B un-locodes: v2022-2 - + markdown: kramdown kramwdown: parse_block_html: true diff --git a/_config_preview.yml b/_config_preview.yml index a36500246..c6e525e25 100644 --- a/_config_preview.yml +++ b/_config_preview.yml @@ -1,12 +1,11 @@ # Site settings title: Vocabulary UNECE -baseurl: "/22B" # the subpath of your site, e.g. /blog +baseurl: "/D22B" # the subpath of your site, e.g. /blog -dataSet: "dataset:'22A'" +dataSet: "dataset:'D22B'" versions: bsp: D22B un-locodes: v2022-2 - markdown: kramdown kramwdown: parse_block_html: true diff --git a/_data/mapping.json b/_data/mapping.json index 67d7a3e59..da6dee3d7 100644 --- a/_data/mapping.json +++ b/_data/mapping.json @@ -1,13 +1,13 @@ { - "unece": "/", + "unece": "/D22B/", "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "xsd": "http://www.w3.org/2001/XMLSchema#", "owl": "http://www.w3.org/2002/07/owl#", "schema": "http://schema.org/", - "unlcd": "/unlocode#", - "unlcdc": "/unlocode-countries#", - "unlcdf": "/unlocode-functions#", - "unlcds": "/unlocode-subdivisions#", - "unlcdv": "/unlocode-vocabulary#" + "unlcd": "/D22B/unlocode#", + "unlcdc": "/D22B/unlocode-countries#", + "unlcdf": "/D22B/unlocode-functions#", + "unlcds": "/D22B/unlocode-subdivisions#", + "unlcdv": "/D22B/unlocode-vocabulary#" } diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html index 9119fc8f2..20a0c8cf7 100644 --- a/_includes/breadcrumbs.html +++ b/_includes/breadcrumbs.html @@ -1,7 +1,7 @@ {% assign pageType = page.collection %}