From 4be022b6714194cca6b481fdb8799a59000b0ca2 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 01:50:15 +0300 Subject: Add .worktrees/ to .gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated by robots --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 19b1651..33d03ec 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/* index.json -.soupault-cache/ \ No newline at end of file +.soupault-cache/ +.worktrees/ \ No newline at end of file -- cgit v1.2.3 From 8a44273b7b26baec6fdb7ee14539ee83c1fa159b Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 01:53:46 +0300 Subject: build: add amplify.yml to gate soupault profiles by branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main → --profile staging, production → --profile live. Overrides console build spec; fixes live widgets appearing on staging. 🤖 Generated by robots (https://vyos.io) --- amplify.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 amplify.yml diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 0000000..8900638 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,27 @@ +version: 1 +applications: + - frontend: + phases: + preBuild: + commands: + - export GH_ACCESS_TOKEN=$(aws ssm get-parameter --name /amplify/shared/d224keb5xu0spt/GH_ACCESS_TOKEN --query Parameter.Value --output text --with-decryption) + - sudo yum install -y https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/c/cmark-0.29.0-4.el9.x86_64.rpm + - npm install -g sass@1.32.8 + - python3 -m venv .venv + - source .venv/bin/activate + - pip install pygithub jinja2 + - wget https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz + - tar xvf soupault-4.10.0-linux-x86_64.tar.gz + - mv -v ./soupault-4.10.0-linux-x86_64/soupault /usr/bin/ + build: + commands: + - source .venv/bin/activate + - '[ "$AWS_BRANCH" = "production" ] && export SOUPAULT_OPTS="--profile live" || export SOUPAULT_OPTS="--profile staging"' + - make all + artifacts: + baseDirectory: /build + files: + - '**/*' + cache: + paths: + - node_modules/**/* -- cgit v1.2.3 From 8e90e80901140dfb38de50a6e7f613ab6e1d7c5c Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 02:01:03 +0300 Subject: ci: add PR build check workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds with --profile staging on any PR targeting main. Runs locally in the Actions runner; no Amplify branch config needed. 🤖 Generated by robots (https://vyos.io) --- .github/workflows/pr-check.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 0000000..e2e9730 --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,27 @@ +name: PR build check + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install cmark + run: sudo apt-get install -y cmark + + - name: Install Dart Sass + run: npm install -g sass@1.32.8 + + - name: Install soupault + run: | + wget -q https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz + tar xf soupault-4.10.0-linux-x86_64.tar.gz + sudo mv soupault-4.10.0-linux-x86_64/soupault /usr/local/bin/ + + - name: Build (staging profile) + run: SOUPAULT_OPTS="--profile staging" make all -- cgit v1.2.3 From 654fb48ff101bae2be751c700dd0eaa43b0bea08 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 02:03:13 +0300 Subject: ci: fix soupault install path to match amplify.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated by robots (https://vyos.io) --- .github/workflows/pr-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index e2e9730..03a1c54 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -21,7 +21,7 @@ jobs: run: | wget -q https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz tar xf soupault-4.10.0-linux-x86_64.tar.gz - sudo mv soupault-4.10.0-linux-x86_64/soupault /usr/local/bin/ + sudo mv soupault-4.10.0-linux-x86_64/soupault /usr/bin/ - name: Build (staging profile) run: SOUPAULT_OPTS="--profile staging" make all -- cgit v1.2.3 From 6fc03e22ea2214512d2c6098ca34442d61a13560 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 02:13:10 +0300 Subject: ci: fix apt-get update and shell ternary robustness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated by robots (https://vyos.io) --- .github/workflows/pr-check.yml | 2 +- amplify.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 03a1c54..90dafff 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Install cmark - run: sudo apt-get install -y cmark + run: sudo apt-get update && sudo apt-get install -y cmark - name: Install Dart Sass run: npm install -g sass@1.32.8 diff --git a/amplify.yml b/amplify.yml index 8900638..5c0053c 100644 --- a/amplify.yml +++ b/amplify.yml @@ -16,7 +16,7 @@ applications: build: commands: - source .venv/bin/activate - - '[ "$AWS_BRANCH" = "production" ] && export SOUPAULT_OPTS="--profile live" || export SOUPAULT_OPTS="--profile staging"' + - 'if [ "$AWS_BRANCH" = "production" ]; then export SOUPAULT_OPTS="--profile live"; else export SOUPAULT_OPTS="--profile staging"; fi' - make all artifacts: baseDirectory: /build -- cgit v1.2.3