From e9c15ace1070d3db632015d4ba4cbe8ff5ae1262 Mon Sep 17 00:00:00 2001 From: "r-universe[bot]" <74155986+r-universe[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:32:47 +0100 Subject: [PATCH] Setup monorepo from template --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ .github/workflows/cleanup.yml | 15 +++++++++++++++ .github/workflows/sync.yml | 18 ++++++++++++++++++ .gitmodules | 5 +++++ .registry | 1 + 5 files changed, 62 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/cleanup.yml create mode 100644 .github/workflows/sync.yml create mode 100644 .gitmodules create mode 160000 .registry diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d21b083 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +on: + push: + branches: + - master + paths-ignore: + - '.*' + - '.*/**' + workflow_dispatch: + inputs: + package: + description: Which package or commit to build (default is HEAD commit) + required: false + +name: Build package +run-name: ${{ github.event.head_commit.message || format('{0} (rebuild)', inputs.package) }} + +jobs: + build: + name: Build and deploy + uses: r-universe/workflows/.github/workflows/build.yml@v1 + with: + package: ${{inputs.package}} + secrets: inherit diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml new file mode 100644 index 0000000..cacff56 --- /dev/null +++ b/.github/workflows/cleanup.yml @@ -0,0 +1,15 @@ +on: + workflow_dispatch: + push: + branches: + - master + paths: + - '.gitmodules' + +name: Cleanup package server + +jobs: + update: + name: Delete removed packages + uses: r-universe/workflows/.github/workflows/cleanup.yml@v1 + secrets: inherit diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 0000000..40e63c3 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,18 @@ +on: + workflow_dispatch: + push: + branches: + - master + paths: + - '.github/workflows/sync.yml' + +name: Update universe + +# Do not launch new job before the old one is done +concurrency: ${{ github.workflow }} + +jobs: + update: + name: Update submodules + uses: r-universe/workflows/.github/workflows/sync.yml@v1 + secrets: inherit diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7bfda3c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,5 @@ +[submodule ".registry"] + path = .registry + url = https://github.com/r-universe-org/cran-to-git + shallow = true + branch = HEAD diff --git a/.registry b/.registry new file mode 160000 index 0000000..feb0dee --- /dev/null +++ b/.registry @@ -0,0 +1 @@ +Subproject commit feb0dee5c7b562f4f82030255a37f0e1a0632df7