diff --git a/.github/workflows/pr-website.yaml b/.github/workflows/pr-website.yaml deleted file mode 100644 index 5dc4e332f8..0000000000 --- a/.github/workflows/pr-website.yaml +++ /dev/null @@ -1,43 +0,0 @@ -name: Pull request website - -# Do not abstract the build step into a separate workflow file, as it will run into pathname issues - -on: - pull_request: - paths: - - '**/README.md' - -jobs: - build-website: - name: Build website - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - with: - repository: janus-idp/janus-idp.github.io - persist-credentials: false - fetch-depth: 0 - - - uses: pnpm/action-setup@v3 - name: Install pnpm - id: pnpm-install - - - name: Setup Node.js - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies - run: | - pnpm install - if [[ $(git diff --name-only . || true) ]]; then - echo "After 'pnpm install', workspace is dirty! The following files have changed:" - echo - git diff --name-only . || true - exit 42 - fi - - - name: Run Build - run: pnpm run build --filter=website diff --git a/.github/workflows/push-website.yaml b/.github/workflows/push-website.yaml deleted file mode 100644 index bd55712818..0000000000 --- a/.github/workflows/push-website.yaml +++ /dev/null @@ -1,56 +0,0 @@ -name: Push website - -# Do not abstract the build step into a separate workflow file, as it will run into pathname issues - -on: - push: - branches: - - main - paths: - - '**/README.md' - -concurrency: - group: push-website - cancel-in-progress: true - -jobs: - build-website: - name: Build website - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - with: - repository: janus-idp/janus-idp.github.io - persist-credentials: false - fetch-depth: 0 - - - uses: pnpm/action-setup@v3 - name: Install pnpm - id: pnpm-install - - - name: Setup Node.js - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --prefer-offline --frozen-lockfile - - - name: Run Build - run: pnpm run build --filter=website - - dispatch-website: - name: Dispatch website - needs: - - build-website - runs-on: ubuntu-latest - steps: - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 # v2 - with: - token: ${{ secrets.PAT }} - repository: janus-idp/janus-idp.github.io - event-type: deploy-website - client-payload: '{"github": ${{ toJson(github) }}}'