reference clean up #7
Workflow file for this run
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: Create Staging link versions on ReadMe from non-main branches | ||
on: | ||
// when a PR is created in any branch except main that have made changes to the | ||
// reference folder, run this workflow | ||
push: | ||
branches-ignore: | ||
- main | ||
jobs: | ||
# //////////////////////////////////////////////////////////////////////// | ||
# Pull Request | ||
# //////////////////////////////////////////////////////////////////////// | ||
# Create a new ReadMe Version | ||
rdme-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run `versions` command | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: versions:create ${{ github.event.number }} --fork={version-fork} --main={true|false} --beta={true|false} --deprecated={true|false} --hidden={true|false} | ||
# Push branch content onto that ReadMe Version | ||
rdme-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
- name: Run `docs` command 🚀 | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: docs ./reference --key=${{ secrets.README_API_KEY }} --version=${{ github.event.number }} | ||
# PR Preview Deploy | ||
# preview-deploy: | ||
# name: Preview | ||
# if: ${{ github.event_name == 'pull_request' }} | ||
# uses: ./.github/workflows/marketing-site-build-and-upload.yaml | ||
# with: | ||
# service-account: gh-actions-cdn-deployer-dev@mixpanel-tools.iam.gserviceaccount.com | ||
# asset-bucket-prefix: pr-${{ github.event.number }} | ||
# html-bucket-prefix: pr-${{ github.event.number }} | ||
# cdn-host: cdn-dev.mxpnl.com | ||
# gcs-bucket: cdn-dev-mixpanel-com | ||
# ignore-lint: 1 | ||
# preview-notify: | ||
# name: Preview / Notify | ||
# runs-on: ubuntu-20.04 | ||
# needs: | ||
# - preview-deploy | ||
# timeout-minutes: 15 | ||
# permissions: | ||
# contents: read | ||
# issues: write | ||
# pull-requests: write | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# sparse-checkout: | | ||
# .github | ||
# marketing-site | ||
# # Build PR Comment | ||
# - name: Build PR comment | ||
# id: build-pr-comment | ||
# uses: actions/github-script@v6 | ||
# with: | ||
# result-encoding: string | ||
# script: | | ||
# return ` | ||
# # READMe Reference PR Preview | ||
# :rocket: https://https://developer.mixpanel.com/v${{ github.event.number }}/reference/overview | ||
# Last updated: ${new Date().toLocaleString("en-US", {timeZone: "America/Los_Angeles"})} PT from ${{github.sha}} | ||
# ` | ||
# # Update PR Comment | ||
# - uses: ./.github/actions/create-or-update-comment | ||
# with: | ||
# issue-number: ${{ github.event.number }} | ||
# key: marketing-site-pr-preview | ||
# body: ${{ steps.build-pr-comment.outputs.result }} |