Skip to content

Commit

Permalink
Fix link checks and remove unused workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Nov 21, 2023
1 parent ea3b6f9 commit 9b35bce
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 82 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,30 @@ jobs:
run: make test
continue-on-error: ${{ matrix.experimental }}

# linkcheck:
# name: Build site and check links
# runs-on: ubuntu-latest
# if: ${{ github.ref != 'refs/heads/main' }}
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# with:
# submodules: recursive
# - name: Build site and check links
# run: make build BUILD_CONFIGS=_config.yml,_config_stage.yml
# - name: Install Node for Firebase install
# uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
# with:
# node-version: ${{ env.NODE_VERSION }}
# - name: Install Firebase CLI
# run: npm install -g [email protected]
# - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
# with:
# sdk: stable
# - run: tool/check-links.sh
linkcheck:
name: Build site and check links
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Build site and check links
run: make build BUILD_CONFIGS=_config.yml,_config_stage.yml
- name: Install Node for Firebase install
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Firebase CLI
run: npm install -g [email protected]
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
with:
sdk: stable
- run: tool/check-links.sh

deploy:
name: Deploy to production
needs: test
needs: [test, linkcheck]
runs-on: ubuntu-latest
if: |
github.event_name == 'push'
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/link-check.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/no-response.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check links and stage
name: Stage site on Firebase

on:
pull_request:
Expand All @@ -20,9 +20,9 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- name: Build site and check links
- name: Build site
run: make stage-local
- name: Stage site on Firebase
- name: Stage
if: ${{
github.repository == 'cfug/flutter.cn' &&
github.event.pull_request.user.login != 'dependabot[bot]' }}
Expand Down

0 comments on commit 9b35bce

Please sign in to comment.