This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
make content & popup wait for feature flags init & release 0.6.33 (#866) #296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build truthsayer & release it | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build libs | |
run: yarn build-libs | |
- name: Build truthsayer | |
# This is a little absurd, but CI=true forces React build script to treat | |
# all warnings as errors. Let's turn it off to unblock the change. Once | |
# we get rid of all the warnings we can enable CI back. | |
# https://github.com/facebook/create-react-app/issues/3657 | |
env: | |
CI: false | |
run: yarn truthsayer build | |
- name: Push build output to mazed-dev/truthsayer-release | |
uses: cpina/github-action-push-to-another-repository@main | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: 'truthsayer/build' | |
destination-github-username: 'mazed-dev' | |
destination-repository-name: 'truthsayer-release' | |
target-branch: main | |
user-email: ${{github.event.pusher.email}} | |
user-name: ${{github.event.pusher.name}} |