From 6875406b41d9dde7b3f85a87baf383ae55153fac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 15 Jun 2023 08:50:28 -0300 Subject: [PATCH 1/5] Updating sponsors (#457) Co-authored-by: beta-ziliani --- _data/opencollective.json | 16 ++++++++-------- _data/sponsors.csv | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/_data/opencollective.json b/_data/opencollective.json index 08f9df54..b4b01b4d 100644 --- a/_data/opencollective.json +++ b/_data/opencollective.json @@ -28,7 +28,7 @@ { "name": "Frisco Del Rosario", "last_payment": 1.0, - "all_time": 3.0, + "all_time": 2.0, "since": "May 8, 2023" }, { @@ -80,7 +80,7 @@ "name": "Bubble Shooter", "url": "https://www.bubbleshooter.net/", "last_payment": 5.0, - "all_time": 20.0, + "all_time": 25.0, "since": "Feb 13, 2023" }, { @@ -302,7 +302,7 @@ { "name": "Benjamin Klotz", "last_payment": 25.0, - "all_time": 235.0, + "all_time": 260.0, "since": "May 2, 2022" }, { @@ -333,7 +333,7 @@ "name": "Sufi Meditation", "url": "https://www.zikir.com", "last_payment": 5.0, - "all_time": 70.0, + "all_time": 75.0, "since": "Mar 26, 2022" }, { @@ -431,7 +431,7 @@ { "name": "Michael Wagner", "last_payment": 5.0, - "all_time": 95.0, + "all_time": 100.0, "since": "Nov 11, 2021" }, { @@ -620,7 +620,7 @@ { "name": "Joseph Method", "last_payment": 5.0, - "all_time": 115.0, + "all_time": 120.0, "since": "Jul 9, 2021" }, { @@ -671,7 +671,7 @@ "name": "Windesol Sähkön Kilpailutus", "url": "https://windesol.fi", "last_payment": 5.0, - "all_time": 120.0, + "all_time": 125.0, "since": "Jun 8, 2021" }, { @@ -1247,7 +1247,7 @@ "since": "May 9, 2020" }, { - "name": "Glen Aultman-Bettridge", + "name": "Glen A-B", "last_payment": 5.0, "all_time": 185.0, "since": "May 5, 2020" diff --git a/_data/sponsors.csv b/_data/sponsors.csv index d1257c0a..bbb5c3ec 100644 --- a/_data/sponsors.csv +++ b/_data/sponsors.csv @@ -22,7 +22,7 @@ sponsors/concentric.png,Concentric,https://concentric.health,$75,$375,"Feb 2, 20 ,Ricardo Tomasi,https://ricardo.cc,$25,$825,"Oct 9, 2020",25 ,Casinoonlineaams.com,https://www.casinoonlineaams.com,$25,$625,"May 26, 2021",25 ,CHUNG TSAI,,$25,$550,"Sep 3, 2021",25 -,Benjamin Klotz,,$25,$235,"May 2, 2022",25 +,Benjamin Klotz,,$25,$260,"May 2, 2022",25 ,Jeremy Woertink,,$25,$75,"Mar 30, 2023",25 ,pitosalas,,$20,$825,"Dec 20, 2017",10 ,Christos Zisopoulos,,$10,$660,"Jun 23, 2016",10 @@ -63,7 +63,7 @@ sponsors/concentric.png,Concentric,https://concentric.health,$75,$375,"Feb 2, 20 ,igorkasyanchuk,https://phototo.com.ua/,$5,$205,"Nov 2, 2017",5 ,Martin Honermeyer,,$5,$205,"Jul 24, 2018",5 ,elliot,,$5,$185,"Dec 9, 2018",5 -,Glen Aultman-Bettridge,,$5,$185,"May 5, 2020",5 +,Glen A-B,,$5,$185,"May 5, 2020",5 ,Oleksii Neishchenko,,$5,$185,"Jun 9, 2020",5 ,Nobuaki Tanaka,https://twitter.com/tomerun,$5,$185,"Jun 10, 2020",5 ,devtrackers.gg,https://devtrackers.gg,$5,$180,"Dec 9, 2018",5 @@ -78,26 +78,26 @@ sponsors/concentric.png,Concentric,https://concentric.health,$75,$375,"Feb 2, 20 ,Lukas Svoboda,,$5,$135,"Sep 21, 2015",5 ,Auttawut Wiriyakreng,,$5,$135,"Mar 25, 2021",5 ,Netin nopeustesti,https://netinnopeustesti.com/,$5,$125,"May 27, 2021",5 +,Windesol Sähkön Kilpailutus,https://windesol.fi,$5,$125,"Jun 8, 2021",5 ,Provided.io,https://provided.io,$5,$125,"Jun 15, 2021",5 ,ryan-senn,https://tt.edu.au,$5,$120,"Jan 4, 2020",5 -,Windesol Sähkön Kilpailutus,https://windesol.fi,$5,$120,"Jun 8, 2021",5 ,Renkaatsopivasti,https://renkaatsopivasti.fi,$5,$120,"Jul 2, 2021",5 ,Agloks,,$5,$120,"Jul 8, 2021",5 -,Joseph Method,,$5,$115,"Jul 9, 2021",5 +,Joseph Method,,$5,$120,"Jul 9, 2021",5 ,Marco Roth,https://marcoroth.dev,$5,$110,"Mar 4, 2020",5 ,Wolfgang Klinger,,$5,$110,"Mar 9, 2020",5 ,Taletidskortnu,https://taletidskort.nu,$5,$110,"Aug 25, 2021",5 ,eason.ye,https://github.com/yelanxin,$5,$105,"Sep 17, 2021",5 ,Mia Bennett,https://chillfox.com/,$5,$105,"Oct 1, 2021",5 ,maltidsbarometeret,https://maltidsbarometeret.dk,$5,$100,"Oct 19, 2021",5 +,Michael Wagner,,$5,$100,"Nov 11, 2021",5 ,Jeffrey Crochet,,$5,$100,"Mar 2, 2023",5 ,HelppoHinta.fi,https://helppohinta.fi/,$5,$95,"Oct 1, 2021",5 -,Michael Wagner,,$5,$95,"Nov 11, 2021",5 ,PROXYONE LLC,https://proxyone.eu/,$5,$80,"Feb 21, 2022",5 ,Anton Maminov,https://twitter.com/AntonMaminov,$5,$80,"Feb 23, 2022",5 ,bit4bit,,$5,$80,"Mar 9, 2022",5 +,Sufi Meditation,https://www.zikir.com,$5,$75,"Mar 26, 2022",5 ,Seth Falco,https://falco.fun/,$5,$75,"Jul 23, 2022",5 -,Sufi Meditation,https://www.zikir.com,$5,$70,"Mar 26, 2022",5 ,SureBet,https://www.sure.bet/casinos-not-on-gamstop/,$5,$60,"Jun 17, 2022",5 ,CouponBlender,https://www.couponblender.com/,$5,$60,"Jun 30, 2022",5 ,salt rock lamp,,$5,$40,"Apr 11, 2021",5 @@ -109,7 +109,7 @@ sponsors/concentric.png,Concentric,https://concentric.health,$75,$375,"Feb 2, 20 ,Hiptoro,https://hiptoro.com,$5,$25,"Jan 17, 2023",5 ,Displaybenchmark,https://displaybenchmark.com/,$5,$25,"Jan 20, 2023",5 ,Fresh Engagements,https://freshengagements.com/,$5,$25,"Jan 24, 2023",5 -,Bubble Shooter,https://www.bubbleshooter.net/,$5,$20,"Feb 13, 2023",5 +,Bubble Shooter,https://www.bubbleshooter.net/,$5,$25,"Feb 13, 2023",5 ,Kiekkotorni - Nikotiinipussit,https://kiekkotorni.com/,$5,$20,"Feb 24, 2023",5 ,Soc-Promotion,https://soc-promotion.com/instagram/likes,$5,$20,"Mar 2, 2023",5 ,egtslot,https://slot-egt.com/,$5,$10,"May 8, 2023",5 @@ -129,7 +129,7 @@ sponsors/concentric.png,Concentric,https://concentric.health,$75,$375,"Feb 2, 20 ,Kendall Park,,$1,$37,"Nov 22, 2018",1 ,Sergey Kojin,,$1,$26,"Oct 7, 2019",1 ,GOKI MORI,,$1,$7,"Mar 16, 2023",1 -,Frisco Del Rosario,,$1,$3,"May 8, 2023",1 +,Frisco Del Rosario,,$1,$2,"May 8, 2023",1 ,Dutchie,,$0,"$3,450","Nov 23, 2020",0 ,Tumbler Lock,,$0,"$1,500","Dec 27, 2018",0 ,Julien Reichardt,,$0,"$1,150","Dec 13, 2018",0 From 53a5a970bac7d8ff390fd704b65e817cca76bf21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Thu, 15 Jun 2023 17:50:43 +0200 Subject: [PATCH 2/5] [CI] Enable workflow dispatch for deploy action (#456) Co-authored-by: Beta Ziliani --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++ .github/workflows/deploy.yml | 48 ++++++++++++++++++++++++------------ Makefile | 6 ++--- 3 files changed, 65 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..d6b71dfd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: Build +on: + push: + pull_request: + +jobs: + build: + name: Build and Test + runs-on: ubuntu-latest + env: + COMPOSE_FILE: "docker-compose.yml:docker-compose.ci.yml" + steps: + - name: Download source + uses: actions/checkout@v2 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: | + ~/.cache/bundle + tmp/.htmlproofer + key: gem-${{ hashFiles('Gemfile.lock') }} + restore-keys: gem- + - name: Build website + run: | + docker compose run --rm web /bin/bash -c "bundle check || bundle install --jobs=3" + docker compose run --rm web make build + - name: Test + run: | + docker compose run --rm web make check_html + docker compose run --rm web /bin/bash -c "make check_external_links || true" # allowed to fail diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 91f7863c..91041c91 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,14 +1,33 @@ -name: Build +name: Deploy on: push: - pull_request: + branches: [master] + workflow_dispatch: + inputs: + ref: + description: 'Branch, tag or commit SHA1 to build' + required: true + type: string + default: master + +## cancel ongoing runs if the workflow is triggered +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: - build: - name: Build + deploy: + name: Build and Deploy runs-on: ubuntu-latest + if: github.repository_owner == 'crystal-lang' + env: + COMPOSE_FILE: "docker-compose.yml:docker-compose.ci.yml" + GIT_REF: "${{ (github.event_name == 'workflow_dispatch' && inputs.ref) || github.ref }}" steps: - - name: Download source + - name: Checkout ${{ env.GIT_REF }} uses: actions/checkout@v2 + with: + ref: ${{ env.GIT_REF }} - name: Cache dependencies uses: actions/cache@v2 with: @@ -17,25 +36,22 @@ jobs: tmp/.htmlproofer key: gem-${{ hashFiles('Gemfile.lock') }} restore-keys: gem- - - name: Fetch install.sh - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'crystal-lang' - run: | - make fetch_install.sh + - name: Build website run: | - mv docker-compose.ci.yml docker-compose.override.yml - docker-compose run --rm web /bin/bash -c "bundle check || bundle install --jobs=3" - docker-compose run --rm web make check_html - docker-compose run --rm web /bin/bash -c "make check_external_links || true" # allowed to fail + docker compose run --rm web /bin/bash -c "bundle check || bundle install --jobs=3" + docker compose run --rm web make build + - name: Fetch install.sh + run: | + make site/install.sh + - name: Configure AWS Credentials - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'crystal-lang' uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - name: Deploy to www.crystal-lang.org - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository_owner == 'crystal-lang' + - name: Sync to S3 run: | aws s3 sync ./_site s3://crystal-website --delete ./scripts/set-legacy-url-redirects.bash crystal-website < ./_data/legacy_non_pretty_urls.txt diff --git a/Makefile b/Makefile index f58a54d5..e79c6325 100644 --- a/Makefile +++ b/Makefile @@ -41,9 +41,9 @@ deps: Gemfile.lock Gemfile.lock: Gemfile bundle install -.PHONY: fetch_install.sh -fetch_install.sh: ## Fetch install.sh from distribution-scripts repository - wget -N https://raw.githubusercontent.com/crystal-lang/distribution-scripts/master/packages/scripts/install.sh +.PHONY: $(O)/install.sh +$(O)/install.sh: ## Fetch install.sh from distribution-scripts repository + wget -O "$@" -N https://raw.githubusercontent.com/crystal-lang/distribution-scripts/master/packages/scripts/install.sh .PHONY: update_sponsors update_sponsors: scripts/merge.cr fetch_opencollective ## Update sponsor data (fetch from opencollective and merge into _data/sponsors.csv) From dc7826668966832f1c3a9ecd612b136e7b3f7d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Thu, 15 Jun 2023 18:33:02 +0200 Subject: [PATCH 3/5] Remove `install.sh` (#455) --- ...announcing-new-apt-and-rpm-repositories.md | 2 +- install.sh | 287 ------------------ 2 files changed, 1 insertion(+), 288 deletions(-) delete mode 100755 install.sh diff --git a/_posts/2020-08-24-announcing-new-apt-and-rpm-repositories.md b/_posts/2020-08-24-announcing-new-apt-and-rpm-repositories.md index 333d8c60..10ab72f2 100644 --- a/_posts/2020-08-24-announcing-new-apt-and-rpm-repositories.md +++ b/_posts/2020-08-24-announcing-new-apt-and-rpm-repositories.md @@ -30,7 +30,7 @@ We will be hosting these packages at [https://bintray.com/crystal](https://bintr The current apt and rpm packages in [https://dist.crystal-lang.org](https://dist.crystal-lang.org/) will be available and receive stable updates until November 2020 as a transition period. -The [installation script](/install.sh) allows installing the latest stable version by default: +The [installation script](https://crystal-lang.org/install.sh) allows installing the latest stable version by default: ```shell-session $ curl -fsSL https://crystal-lang.org/install.sh -o install.sh diff --git a/install.sh b/install.sh deleted file mode 100755 index c249594b..00000000 --- a/install.sh +++ /dev/null @@ -1,287 +0,0 @@ -#!/usr/bin/env bash - -_help() { - cat <] [--channel=stable|unstable|nightly] - - - crystal-version: "latest", or a minor release version like 1.0 or 1.1 (Default: latest) - - channel: "stable", "unstable", "nightly" (Default: stable) - -REQUIREMENTS - - - Run as root - - The following packages need to be installed already: - - gnupg ca-certificates apt-transport-https (on Debian/Ubuntu) - -NOTES - - The following files may be updated: - - - /etc/apt/sources.list.d/crystal.list (on Debian/Ubuntu) - - /etc/yum.repos.d/crystal.repo (on CentOS/Fedora) - - The following packages may be installed: - - - wget (on Debian/Ubuntu when missing) - - curl (on openSUSE when missing) - - yum-utils (on CentOS/Fedora when using --version=x.y.z) - - This script source and issue-tracker can be found at: - - - https://github.com/crystal-lang/distribution-scripts/tree/master/packages/scripts/install.sh - -END -} - -set -eu - -OBS_PROJECT=${OBS_PROJECT:-"devel:languages:crystal"} -DISTRO_REPO=${DISTRO_REPO:-} -CRYSTAL_VERSION=${CRYSTAL_VERSION:-"latest"} -CHANNEL="stable" - -_error() { - echo >&2 "ERROR: $*" -} - -_warn() { - echo >&2 "WARNING: $*" -} - -_check_version_id() { - if [[ -z "${VERSION_ID}" ]]; then - _error "Unable to identify distribution repository for ${ID}. Please, report to https://forum.crystal-lang.org/c/help-support/11" - exit 1 - fi -} - -_discover_distro_repo() { - if [[ -r /etc/os-release ]]; then - source /etc/os-release - elif [[ -r /usr/lib/os-release ]]; then - source /usr/lib/os-release - else - _error "Unable to identify distribution. Please, report to https://forum.crystal-lang.org/c/help-support/11" - exit 1 - fi - - case "$ID" in - debian) - if [[ -z "${VERSION_ID:+}" ]]; then - VERSION_ID="Unstable" - elif [[ "$VERSION_ID" == "9" ]]; then - VERSION_ID="$VERSION_ID.0" - fi - _check_version_id - - DISTRO_REPO="Debian_${VERSION_ID}" - ;; - ubuntu) - _check_version_id - DISTRO_REPO="xUbuntu_${VERSION_ID}" - ;; - fedora) - _check_version_id - if [[ "${VERSION}" == *"Prerelease"* ]]; then - DISTRO_REPO="Fedora_Rawhide" - else - DISTRO_REPO="Fedora_${VERSION_ID}" - fi - ;; - centos) - _check_version_id - DISTRO_REPO="CentOS_${VERSION_ID}" - ;; - rhel) - _check_version_id - DISTRO_REPO="RHEL_${VERSION_ID}" - ;; - opensuse-tumbleweed) - DISTRO_REPO="openSUSE_Tumbleweed" - ;; - opensuse-leap) - _check_version_id - DISTRO_REPO="${VERSION_ID}" - ;; - "") - _error "Unable to identify distribution. You may specify one with environment variable DISTRO_REPO" - _error "Please, report to https://forum.crystal-lang.org/c/help-support/11" - exit 1 - ;; - *) - # If there's no dedicated repository for the distro, try to figure out - # if the distro is apt or rpm based and use a default repository. - _discover_distro_type - - case "$DISTRO_TYPE" in - deb) - DISTRO_REPO="Debian_Unstable" - ;; - rpm) - DISTRO_REPO="RHEL_7" - ;; - *) - _error "Unable to identify distribution type ($ID). You may specify a repository with the environment variable DISTRO_REPO" - _error "Please, report to https://forum.crystal-lang.org/c/help-support/11" - exit 1 - ;; - esac - esac -} - -_discover_distro_type() { - DISTRO_TYPE="" - [[ $(command -v apt-get) ]] && DISTRO_TYPE="deb" && return - [[ $(command -v yum) ]] && DISTRO_TYPE="rpm" && return -} - -if [[ $EUID -ne 0 ]]; then - _error "This script must be run as root" - exit 1 -fi - -# Parse --version= and --channel= arguments - -for i in "$@" -do -case $i in - --crystal=*) - CRYSTAL_VERSION="${i#*=}" - shift - echo "The argument --crystal= has been deprecated, please use --version= instead." >&2 - ;; - --version=*) - CRYSTAL_VERSION="${i#*=}" - shift - ;; - --channel=*) - CHANNEL="${i#*=}" - shift - ;; - --help) - _help - exit 0 - shift - ;; - *) - _warn "Invalid option $i" - ;; -esac -done - -case $CHANNEL in - stable) - ;; - nightly | unstable) - OBS_PROJECT="${OBS_PROJECT}:${CHANNEL}" - ;; - *) - _error "Unsupported channel $CHANNEL" - exit 1 - ;; -esac - -if [[ -z "${DISTRO_REPO}" ]]; then - _discover_distro_repo -fi - -_install_apt() { - if ! command -v wget &> /dev/null || ! command -v gpg &> /dev/null; then - [[ -f /etc/apt/sources.list.d/crystal.list ]] && rm -f /etc/apt/sources.list.d/crystal.list - apt-get update - apt-get install -y wget gpg - fi - - # Add repo signign key - wget -qO- https://download.opensuse.org/repositories/${OBS_PROJECT//:/:\/}/${DISTRO_REPO}/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/devel_languages_crystal.gpg > /dev/null - echo "deb http://download.opensuse.org/repositories/${OBS_PROJECT//:/:\/}/${DISTRO_REPO}/ /" | tee /etc/apt/sources.list.d/crystal.list - apt-get update - - if [[ "$CRYSTAL_VERSION" == "latest" ]]; then - apt-get install -y crystal - else - apt-get install -y "crystal${CRYSTAL_VERSION}" - fi -} - -_install_rpm_key() { - rpm --verbose --import https://build.opensuse.org/projects/${OBS_PROJECT}/signing_keys/download?kind=gpg -} - -_install_yum() { - _install_rpm_key - - cat > /etc/yum.repos.d/crystal.repo < /dev/null; then - zypper refresh - zypper install -y curl - fi - - _install_rpm_key - zypper --non-interactive addrepo https://download.opensuse.org/repositories/${OBS_PROJECT//:/:\/}/$DISTRO_REPO/${OBS_PROJECT}.repo - zypper --non-interactive refresh - - if [[ "$CRYSTAL_VERSION" == "latest" ]]; then - zypper --non-interactive install crystal - else - zypper --non-interactive install "crystal${CRYSTAL_VERSION}" - fi -} - -# Add repo -case $DISTRO_REPO in - Debian*) - _install_apt - ;; - xUbuntu*) - _install_apt - ;; - Fedora*) - _install_yum - ;; - RHEL*) - _install_yum - ;; - CentOS*) - _install_yum - ;; - 15.* | openSUSE*) - _install_zypper - ;; - *) - _error "Unable to install for $DISTRO_REPO. Please, report to https://forum.crystal-lang.org/c/help-support/11" - exit 1 - ;; -esac From 587313f5e459f75112895b545de668e28e888d20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Thu, 15 Jun 2023 19:05:48 +0200 Subject: [PATCH 4/5] Fix deploy workflow (#458) --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 91041c91..8829198b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,7 +43,7 @@ jobs: docker compose run --rm web make build - name: Fetch install.sh run: | - make site/install.sh + make _site/install.sh - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 From 2286918b73f17fb8b671784876f9790a2c60744c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Thu, 15 Jun 2023 21:09:54 +0200 Subject: [PATCH 5/5] [CI] Fix ownership and parameterize output directory (#459) --- .github/workflows/deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8829198b..975c15c4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'crystal-lang' env: + O: _site COMPOSE_FILE: "docker-compose.yml:docker-compose.ci.yml" GIT_REF: "${{ (github.event_name == 'workflow_dispatch' && inputs.ref) || github.ref }}" steps: @@ -40,10 +41,11 @@ jobs: - name: Build website run: | docker compose run --rm web /bin/bash -c "bundle check || bundle install --jobs=3" - docker compose run --rm web make build + docker compose run -e O --rm web make build + sudo chown -R $(whoami):$(whoami) $O - name: Fetch install.sh run: | - make _site/install.sh + make $O/install.sh - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 @@ -53,5 +55,5 @@ jobs: aws-region: us-east-1 - name: Sync to S3 run: | - aws s3 sync ./_site s3://crystal-website --delete + aws s3 sync ./$O s3://crystal-website --delete ./scripts/set-legacy-url-redirects.bash crystal-website < ./_data/legacy_non_pretty_urls.txt