Skip to content

Commit

Permalink
Merge pull request #1024 from scipy-conference/2024-new-actions
Browse files Browse the repository at this point in the history
📈 Upgrade to new curvenote submit actions
  • Loading branch information
fwkoch authored Oct 4, 2024
2 parents 6a64fe5 + f6961c1 commit d31ce09
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 10 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create preview draft for 2024 articles
on:
pull_request_target:
branches: ['2024']
permissions:
contents: read
pull-requests: write
jobs:
publish:
uses: curvenote/actions/.github/workflows/draft.yml@v1
with:
id-pattern-regex: '^scipy-2024-(?:[a-zA-Z0-9-_]{3,25})$'
enforce-single-folder: true
venue: scipy
collection: '2024'
kind: Article
path: papers/*
label: draft
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
GITHUB: ${{ secrets.GITHUB_TOKEN }}
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
name: curvenote
on:
pull_request_target:
branches: ['2024']
name: Publish all 2024 articles
on: workflow_dispatch
permissions:
contents: read
pull-requests: write
jobs:
publish:
uses: curvenote/actions/.github/workflows/publish.yml@v1
uses: curvenote/actions/.github/workflows/submit.yml@v1
with:
monorepo: true
id-pattern-regex: '^scipy-2024-(?:[a-zA-Z0-9-_]{3,25})$'
enforce-single-folder: paper
preview-label: paper
submit-label: true
venue: scipy
collection: '2024'
kind: Article
path: papers/*
ref: ${{ github.event.pull_request.head.sha }}
publish: true
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
GITHUB: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Create submission for 2024 articles
on:
pull_request_target:
branches: ['2024']
types: [labeled, opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
publish:
uses: curvenote/actions/.github/workflows/submit.yml@v1
with:
id-pattern-regex: '^scipy-2024-(?:[a-zA-Z0-9-_]{3,25})$'
enforce-single-folder: true
venue: scipy
collection: '2024'
kind: Article
path: papers/*
label: reviewed
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
GITHUB: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d31ce09

Please sign in to comment.