From 75a185b90387f1e210698951fc99452a82ed423d Mon Sep 17 00:00:00 2001 From: cor Date: Thu, 19 Oct 2023 00:07:50 +0200 Subject: [PATCH] fix: temporarily disable site preview/prod workflows --- .github/workflows/site-preview.yml | 106 ++++++++++++++--------------- .github/workflows/site-prod.yml | 80 +++++++++++----------- 2 files changed, 93 insertions(+), 93 deletions(-) diff --git a/.github/workflows/site-preview.yml b/.github/workflows/site-preview.yml index 9067b6b69e..65064654bc 100644 --- a/.github/workflows/site-preview.yml +++ b/.github/workflows/site-preview.yml @@ -1,57 +1,57 @@ -name: Site Preview +# name: Site Preview -on: - pull_request: - paths: - - 'site/**' +# on: +# pull_request: +# paths: +# - 'site/**' -env: - ARTIFACT_NAME: BUILD_LOG - NIX_VERSION: nix-2.14.1 - NIXPKGS_CHANNEL: nixos-22.11 +# env: +# ARTIFACT_NAME: BUILD_LOG +# NIX_VERSION: nix-2.14.1 +# NIXPKGS_CHANNEL: nixos-22.11 -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} +# cancel-in-progress: true -jobs: - preview: - runs-on: beefy-runner - outputs: - preview-url: ${{ steps.publish-preview.outputs.preview-url }} - permissions: write-all - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }} - github_access_token: ${{ github.token }} - extra_nix_config: | - trusted-public-keys = union.cachix.org-1:TV9o8jexzNVbM1VNBOq9fu8NK+hL6ZhOyOh0quATy+M= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - substituters = https://union.cachix.org/ https://cache.nixos.org/ - - run: | - nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs - nix-channel --update - nix-env -iA nixpkgs.nodePackages.vercel - - name: "Publish Preview to Vercel" - id: publish-preview - run: | - cd site - export VERCEL_ORG_ID=team_lY7Vs9wFi3Ifb2A24bOxiA68 - export VERCEL_PROJECT_ID=prj_HWQLgBiGFHNPSy5qJ3WpCeX1l492 - vercel pull --yes --environment=preview --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild - vercel build --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild - PREVIEW_URL=$(vercel deploy --prebuilt --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild) - echo "preview-url=${PREVIEW_URL}" >> "$GITHUB_OUTPUT" - - name: Create Preview Comment - if: github.event_name == 'pull_request' - uses: thollander/actions-comment-pull-request@v2 - with: - mode: upsert - message: | - # Site Preview URL - ${{ steps.publish-preview.outputs.preview-url }} - comment_tag: Site Preview URL - GITHUB_TOKEN: ${{ github.token }} +# jobs: +# preview: +# runs-on: beefy-runner +# outputs: +# preview-url: ${{ steps.publish-preview.outputs.preview-url }} +# permissions: write-all +# steps: +# - uses: actions/checkout@v3 +# with: +# lfs: true +# - uses: cachix/install-nix-action@v20 +# with: +# nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }} +# github_access_token: ${{ github.token }} +# extra_nix_config: | +# trusted-public-keys = union.cachix.org-1:TV9o8jexzNVbM1VNBOq9fu8NK+hL6ZhOyOh0quATy+M= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= +# substituters = https://union.cachix.org/ https://cache.nixos.org/ +# - run: | +# nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs +# nix-channel --update +# nix-env -iA nixpkgs.nodePackages.vercel +# - name: "Publish Preview to Vercel" +# id: publish-preview +# run: | +# cd site +# export VERCEL_ORG_ID=team_lY7Vs9wFi3Ifb2A24bOxiA68 +# export VERCEL_PROJECT_ID=prj_HWQLgBiGFHNPSy5qJ3WpCeX1l492 +# vercel pull --yes --environment=preview --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild +# vercel build --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild +# PREVIEW_URL=$(vercel deploy --prebuilt --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild) +# echo "preview-url=${PREVIEW_URL}" >> "$GITHUB_OUTPUT" +# - name: Create Preview Comment +# if: github.event_name == 'pull_request' +# uses: thollander/actions-comment-pull-request@v2 +# with: +# mode: upsert +# message: | +# # Site Preview URL +# ${{ steps.publish-preview.outputs.preview-url }} +# comment_tag: Site Preview URL +# GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/site-prod.yml b/.github/workflows/site-prod.yml index bcafcc9f6b..47216714a2 100644 --- a/.github/workflows/site-prod.yml +++ b/.github/workflows/site-prod.yml @@ -1,45 +1,45 @@ -name: Deploy Site +# name: Deploy Site -on: - push: - branches: - - main +# on: +# push: +# branches: +# - main -env: - ARTIFACT_NAME: BUILD_LOG - NIX_VERSION: nix-2.14.1 - NIXPKGS_CHANNEL: nixos-22.11 +# env: +# ARTIFACT_NAME: BUILD_LOG +# NIX_VERSION: nix-2.14.1 +# NIXPKGS_CHANNEL: nixos-22.11 -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} - cancel-in-progress: true +# concurrency: +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} +# cancel-in-progress: true -jobs: - deploy: - runs-on: beefy-runner - permissions: write-all - steps: - - uses: actions/checkout@v3 - with: - lfs: true - - uses: cachix/install-nix-action@v20 - with: - nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }} - github_access_token: ${{ github.token }} - extra_nix_config: | - trusted-public-keys = union.cachix.org-1:TV9o8jexzNVbM1VNBOq9fu8NK+hL6ZhOyOh0quATy+M= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - substituters = https://union.cachix.org/ https://cache.nixos.org/ - - run: | - nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs - nix-channel --update - nix-env -iA nixpkgs.nodePackages.vercel - - name: "Publish Preview to Vercel" - id: publish-preview - run: | - cd site - export VERCEL_ORG_ID=team_lY7Vs9wFi3Ifb2A24bOxiA68 - export VERCEL_PROJECT_ID=prj_HWQLgBiGFHNPSy5qJ3WpCeX1l492 - vercel pull --yes --environment=production --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild - vercel build --token=${{secrets.VERCEL_TOKEN}} --prod --scope unionbuild - vercel deploy --prebuilt --prod --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild +# jobs: +# deploy: +# runs-on: beefy-runner +# permissions: write-all +# steps: +# - uses: actions/checkout@v3 +# with: +# lfs: true +# - uses: cachix/install-nix-action@v20 +# with: +# nix_path: nixpkgs=channel:${{ env.NIXPKGS_CHANNEL }} +# github_access_token: ${{ github.token }} +# extra_nix_config: | +# trusted-public-keys = union.cachix.org-1:TV9o8jexzNVbM1VNBOq9fu8NK+hL6ZhOyOh0quATy+M= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= +# substituters = https://union.cachix.org/ https://cache.nixos.org/ +# - run: | +# nix-channel --add https://nixos.org/channels/${{ env.NIXPKGS_CHANNEL }} nixpkgs +# nix-channel --update +# nix-env -iA nixpkgs.nodePackages.vercel +# - name: "Publish Preview to Vercel" +# id: publish-preview +# run: | +# cd site +# export VERCEL_ORG_ID=team_lY7Vs9wFi3Ifb2A24bOxiA68 +# export VERCEL_PROJECT_ID=prj_HWQLgBiGFHNPSy5qJ3WpCeX1l492 +# vercel pull --yes --environment=production --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild +# vercel build --token=${{secrets.VERCEL_TOKEN}} --prod --scope unionbuild +# vercel deploy --prebuilt --prod --token=${{secrets.VERCEL_TOKEN}} --scope unionbuild