diff --git a/.github/workflows/build_pages_native.yml b/.github/workflows/build_pages_native.yml index 6c10f3a..d7794ff 100644 --- a/.github/workflows/build_pages_native.yml +++ b/.github/workflows/build_pages_native.yml @@ -7,8 +7,8 @@ on: pull_request: branches: - main -# schedule: -# - cron: "15 3 * * *" + schedule: + - cron: "15 3 * * *" jobs: build_and_test: @@ -49,6 +49,11 @@ jobs: remote_host: ${{ secrets.DEPLOY_HOST }} remote_user: ${{ secrets.DEPLOY_USER }} remote_key: ${{ secrets.DEPLOY_KEY_WWW }} + - name: Deploy Admin inteface to GitHub pages + uses: JamesIves/github-pages-deploy-action@v4 + if: ${{ github.ref == 'refs/heads/main' }} + with: + folder: admin # The folder the action should deploy. - name: Slack notify failure (website) if: failure() uses: voxmedia/github-action-slack-notify-build@v1 @@ -67,9 +72,4 @@ jobs: channel: communications status: FAILED color: danger - - name: Deploy GiutHub pages - uses: JamesIves/github-pages-deploy-action@v4 -# if: ${{ github.ref == 'refs/heads/main' }} # && ( success() || failure() ) # Remove the && clause when a HTML check is flawless - with: - folder: admin # The folder the action should deploy. diff --git a/admin/config.yml b/admin/config.yml index 4aee4a4..a7fe367 100644 --- a/admin/config.yml +++ b/admin/config.yml @@ -25,7 +25,6 @@ collections: # A list of collections the CMS should be able to edit file: "join.md" fields: - {label: Title, name: title, widget: string } - - {label: Description, name: description, widget: string } - {label: Layout, name: layout, widget: hidden, default: default } - {label: Body, name: body, widget: markdown } - label: "Donate" @@ -34,6 +33,7 @@ collections: # A list of collections the CMS should be able to edit fields: - {label: Title, name: title, widget: string } - {label: Layout, name: layout, widget: hidden, default: default } + - {label: Scripts, name: scripts, widget: list, default: ["supp.js]"} - {label: Body, name: body, widget: markdown } - label: "News" name: "news" @@ -47,7 +47,6 @@ collections: # A list of collections the CMS should be able to edit file: "partners.md" fields: - {label: Title, name: title, widget: string } - - {label: Description, name: description, widget: string } - {label: Layout, name: layout, widget: hidden, default: default } - {label: Body, name: body, widget: markdown } - label: "Reports" @@ -55,7 +54,6 @@ collections: # A list of collections the CMS should be able to edit file: "reports.md" fields: - {label: Title, name: title, widget: string } - - {label: Description, name: description, widget: string } - {label: Layout, name: layout, widget: hidden, default: default } - {label: Body, name: body, widget: markdown } - label: "Team"