diff --git a/.github/workflows/website_build.yml b/.github/workflows/website.yml similarity index 98% rename from .github/workflows/website_build.yml rename to .github/workflows/website.yml index 0fb96324451..1fb4cb3c838 100644 --- a/.github/workflows/website_build.yml +++ b/.github/workflows/website.yml @@ -1,4 +1,4 @@ -name: Website Build +name: Website on: push: @@ -50,4 +50,3 @@ jobs: - name: Build Website run: pnpm -F website build - diff --git a/.github/workflows/website_preview.yml b/.github/workflows/website_preview.yml deleted file mode 100644 index 28c35ac1e4a..00000000000 --- a/.github/workflows/website_preview.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Website Preview -env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }} -on: - pull_request: - types: - - opened - - reopened - - edited - paths: - - "packages/website/**" -jobs: - vercel-preview: - runs-on: ubuntu-latest - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 - with: - access_token: ${{ github.token }} - - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up protocol - uses: ./.github/actions/set-up-protocol - - - name: Install Vercel CLI - run: pnpm install --global vercel@latest - - - name: Pull Vercel Environment Information - run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} - - - name: Build Project Artifacts - run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - - - name: Deploy Project Artifacts to Vercel - run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > url.txt - - - name: Get Preview URL - id: get-url - run: echo ::set-output name=url::$(cat url.txt) - - - name: Test output - run: echo ${{ steps.get-url.outputs.url }} - - - name: Create Preview Comment - uses: actions/github-script@v5 - with: - github-token: ${{ github.token }} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '☂️☂️☂️ Preview the changes at: ${{ steps.get-url.outputs.url }}' - }) diff --git a/.github/workflows/whitepaper.yml b/.github/workflows/whitepaper.yml index a478865c66d..41351fb14e6 100644 --- a/.github/workflows/whitepaper.yml +++ b/.github/workflows/whitepaper.yml @@ -8,7 +8,7 @@ on: paths: - "packages/whitepaper/**" jobs: - build-latex: + build_latex: runs-on: ubuntu-latest steps: - name: Cancel Previous Runs