Skip to content

Update IP Ranges and Build Artifacts #2065

Update IP Ranges and Build Artifacts

Update IP Ranges and Build Artifacts #2065

Workflow file for this run

name: Update IP Ranges and Build Artifacts
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '53 */3 * * *' # I'm on a prime schedule - every 3 hours at 53 minutes, because ordinary schedules are just too divisible! :)
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Project
run: pnpm build
- name: Compress Mini Artifacts
run: pnpm build-m
- name: Compress Comma Artifacts
run: pnpm build-c
- name: Set Current Date
run: echo "NOW=$(TZ=Asia/Seoul date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Commit and Push Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[BOT] changes - ${{ env.NOW }}'
push_options: '--force'