diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-build-publisher.yml similarity index 74% rename from .github/workflows/ci.yml rename to .github/workflows/ci-build-publisher.yml index b1ed6472..ce10f79a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-build-publisher.yml @@ -1,14 +1,14 @@ -name: build +name: build-publisher on: push: branches: tags: paths: - - '.github/workflows/ci.yml' + - '.github/workflows/ci-build-publisher.yml' - 'publisher/**' pull_request: paths: - - '.github/workflows/ci.yml' + - '.github/workflows/ci-build-publisher.yml' - 'publisher/**' jobs: diff --git a/.github/workflows/ci-build-site.yml b/.github/workflows/ci-build-site.yml new file mode 100644 index 00000000..8567e559 --- /dev/null +++ b/.github/workflows/ci-build-site.yml @@ -0,0 +1,36 @@ +name: build-site +on: + push: + branches: + tags: + paths-ignore: + - 'publisher/**' + - 'updater/**' + - '.github/workflows/ci-build-publisher.yml' + - '.github/workflows/ci-build-updater.yml' + - '.github/workflows/ci-frontend-check.yml' + - '.github/workflows/ci-frontend-lint.yml' + - '.github/dependabot.yml' + - '.github/FUNDING.yml' + pull_request: + paths-ignore: + - 'publisher/**' + - 'updater/**' + - '.github/workflows/ci-build-publisher.yml' + - '.github/workflows/ci-build-updater.yml' + - '.github/workflows/ci-frontend-check.yml' + - '.github/workflows/ci-frontend-lint.yml' + - '.github/dependabot.yml' + - '.github/FUNDING.yml' + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + + - name: check out code + uses: actions/checkout@v4 + + - name: build site image + run: docker build -t radio-t/site . diff --git a/.github/workflows/ci-build-updater.yml b/.github/workflows/ci-build-updater.yml new file mode 100644 index 00000000..e19fae75 --- /dev/null +++ b/.github/workflows/ci-build-updater.yml @@ -0,0 +1,25 @@ +name: build-updater +on: + push: + branches: + tags: + paths: + - '.github/workflows/ci-build-updater.yml' + - 'updater/**' + pull_request: + paths: + - '.github/workflows/ci-build-updater.yml' + - 'updater/**' + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + + - name: check out code + uses: actions/checkout@v4 + + - name: build updater image + run: docker build -t radio-t/updater . + working-directory: updater diff --git a/.github/workflows/ci-frontend-lint.yml b/.github/workflows/ci-frontend-lint.yml index 15fe91d4..e902aab9 100644 --- a/.github/workflows/ci-frontend-lint.yml +++ b/.github/workflows/ci-frontend-lint.yml @@ -5,10 +5,12 @@ on: branches: tags: paths: + - '.github/workflows/ci-frontend-lint.yml' - "hugo/**/*.jsx?" - "hugo/**/*.tsx?" pull_request: paths: + - '.github/workflows/ci-frontend-lint.yml' - "hugo/**/*.jsx?" - "hugo/**/*.tsx?" @@ -17,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [14.15] + node: [14, 16] steps: - uses: actions/checkout@v4