Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Dec 10, 2024
1 parent 17793d1 commit 2e267ff
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 48 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@ env:
HUSKY: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'yarn'

- name: Installing Dependencies
run: yarn install

- name: Building App
run: yarn build
env:
REACT_APP_SEGMENT_WRITE_KEY: ${{ secrets.REACT_APP_SEGMENT_WRITE_KEY }}

- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

analytics-node:
name: 'analytics-node QA (Node.js v${{ matrix.node-version }})'
runs-on: ubuntu-latest
Expand Down
39 changes: 19 additions & 20 deletions .github/workflows/deploy-signals-example-to-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,34 @@ on:
branches:
# - main
- deploy-signals-example

env:
HUSKY: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Change Directory to signals-example
run: cd packages/signals/signals-example

- name: Installing Dependencies
run: yarn install
working-directory: packages/signals/signals-example

- name: Building App
run: yarn build
working-directory: packages/signals/signals-example

- run: yarn install --immutable
- name: Turbo cache
uses: actions/cache@v3
with:
path: node_modules/.cache/turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- run: yarn turbo run --filter='./packages/signals/signals-example...' build
- name: Deploy with gh-pages
working-directory: packages/signals/signals-example
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -d build -u "github-actions-bot <[email protected]>"
yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: packages/signals/signals-example
2 changes: 1 addition & 1 deletion packages/signals/signals-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@internal/signals-example",
"private": true,
"homepage": "https://segmentio.github.io/<repository-name>/my-test-site",
"homepage": "https://segmentio.github.io/<repository-name>/signals-example",
"scripts": {
".": "yarn run -T turbo run --filter=@internal/signals-example...",
"dev": "webpack serve",
Expand Down

0 comments on commit 2e267ff

Please sign in to comment.