Skip to content

Commit 637e522

Browse files
GHA update: Factor out build from deploy
1 parent 3c5f692 commit 637e522

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ run-name: ${{ github.event.head_commit.message || format('{0} (rebuild)', inputs
1717
jobs:
1818
prepare:
1919
if: "!contains(github.event.head_commit.message, 'Deleting packages')"
20-
name: Prepare
20+
name: Setup
2121
runs-on: ubuntu-latest
2222
outputs:
2323
package: ${{ steps.lookup.outputs.package }}
@@ -32,16 +32,15 @@ jobs:
3232
fi
3333
echo "package=$package" >> $GITHUB_OUTPUT
3434
35-
build:
35+
deploy:
3636
needs: prepare
37-
name: Build and deploy
37+
name: Deploy to R-universe
3838
concurrency:
39-
group: ${{ needs.prepare.outputs.package }}
39+
group: deploy-${{ needs.prepare.outputs.package }}
4040
cancel-in-progress: true
41-
uses: r-universe-org/workflows/.github/workflows/build.yml@v2
41+
uses: r-universe-org/workflows/.github/workflows/deploy.yml@v3
4242
with:
4343
package: ${{ inputs.package }}
44-
universe: ${{ github.event.repository.name }}
4544
secrets:
4645
DUMMY_SESSION: ${{ secrets.DUMMY_SESSION }}
4746
CRANLIKEPWD: ${{ secrets.CRANLIKEPWD }}

.github/workflows/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name: Cleanup package server
1111
jobs:
1212
update:
1313
name: Delete removed packages
14-
uses: r-universe-org/workflows/.github/workflows/cleanup.yml@v2
14+
uses: r-universe-org/workflows/.github/workflows/cleanup.yml@v3
1515
secrets:
1616
CRANLIKEPWD: ${{ secrets.CRANLIKEPWD }}
1717
BOT_TOKEN: ${{ secrets.GHPAT }}

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency: ${{ github.workflow }}
1414
jobs:
1515
update:
1616
name: Update submodules
17-
uses: r-universe-org/workflows/.github/workflows/sync.yml@v2
17+
uses: r-universe-org/workflows/.github/workflows/sync.yml@v3
1818
secrets:
1919
GH_APP_KEY: ${{ secrets.GH_APP_KEY }}
2020
BOT_TOKEN: ${{ secrets.GHPAT }}

0 commit comments

Comments
 (0)