hosted: switch non-secrets to vars

This commit is contained in:
Ben Senescu 2026-04-22 17:32:30 -04:00
parent d23cad7abf
commit 61cc64f2af

View File

@ -1,42 +1,33 @@
name: Upload sourcemaps name: Upload sourcemaps
on: on:
push: push:
branches: branches:
- main - main
concurrency: concurrency:
group: sourcemaps-${{ github.ref }} group: sourcemaps-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
upload: upload:
if: github.repository != 'every-app/open-seo' if: github.repository != 'every-app/open-seo'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
POSTHOG_SOURCEMAPS: "true" POSTHOG_SOURCEMAPS: "true"
POSTHOG_CLI_HOST: ${{ secrets.POSTHOG_CLI_HOST }} POSTHOG_CLI_HOST: ${{ vars.POSTHOG_CLI_HOST }}
POSTHOG_CLI_PROJECT_ID: ${{ secrets.POSTHOG_CLI_PROJECT_ID }} POSTHOG_CLI_PROJECT_ID: ${{ vars.POSTHOG_CLI_PROJECT_ID }}
POSTHOG_CLI_API_KEY: ${{ secrets.POSTHOG_CLI_API_KEY }} POSTHOG_CLI_API_KEY: ${{ secrets.POSTHOG_CLI_API_KEY }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup pnpm - name: Setup pnpm
uses: pnpm/action-setup@v4 uses: pnpm/action-setup@v4
with: with:
version: 9 version: 9
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
cache: pnpm cache: pnpm
- name: Install dependencies - name: Install dependencies
run: pnpm install --frozen-lockfile run: pnpm install --frozen-lockfile
- name: Build and upload sourcemaps - name: Build and upload sourcemaps
run: pnpm run sourcemaps:upload run: pnpm run sourcemaps:upload