Skip to content

Commit

Permalink
Setup monorepo from template
Browse files Browse the repository at this point in the history
  • Loading branch information
r-universe[bot] committed Feb 2, 2024
0 parents commit e9c15ac
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[submodule ".registry"]
path = .registry
url = https://github.com/r-universe-org/cran-to-git
shallow = true
branch = HEAD
1 change: 1 addition & 0 deletions .registry
Submodule .registry added at feb0de

0 comments on commit e9c15ac

Please sign in to comment.