diff --git a/.github/workflows/reviewstack.dev-deploy.yml b/.github/workflows/reviewstack.dev-deploy.yml index 3e509023a31fc..4eb3dbe2215f5 100644 --- a/.github/workflows/reviewstack.dev-deploy.yml +++ b/.github/workflows/reviewstack.dev-deploy.yml @@ -2,26 +2,29 @@ name: Publish https://reviewstack.dev on: workflow_dispatch: + pull_request: + paths: + - '.github/workflows/reviewstack.dev-deploy.yml' schedule: - cron: '0 0 * * 1-5' jobs: deploy: runs-on: ubuntu-22.04 - # Our build container already has Node, Yarn, and Python installed. - container: - image: ${{ format('ghcr.io/{0}/build_ubuntu_22_04:latest', github.repository) }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - name: Checkout Code uses: actions/checkout@v6 - - name: Grant Access - run: git config --global --add safe.directory "$PWD" + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + - name: Install Yarn + run: npm install -g yarn - name: Install dependencies working-directory: ./eden/contrib/ - run: yarn install --prefer-offline - + run: yarn install # Build codegen and then do some sanity checks so we don't push the site # when the tests are broken. - name: GraphQL/TextMate codegen @@ -36,7 +39,6 @@ jobs: - name: Build the static site working-directory: ./eden/contrib/reviewstack.dev run: yarn release - # Push to the release branch. - name: Deploy uses: peaceiris/actions-gh-pages@v4