Skip to content

Commit

Permalink
🔧 Alternative publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed Oct 4, 2024
1 parent d31ce09 commit 0b35634
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Publish all 2024 articles
on: workflow_dispatch
name: Publish 2024 articles
on:
pull_request_target:
branches: ['2024']
types: [labeled, opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
Expand All @@ -12,6 +15,7 @@ jobs:
collection: '2024'
kind: Article
path: papers/*
label: publish
publish: true
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/publish_dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish all 2024 articles
on: workflow_dispatch
permissions:
contents: write
jobs:
publish:
uses: curvenote/actions/.github/workflows/submit.yml@v1
with:
id-pattern-regex: '^scipy-2024-(?:[a-zA-Z0-9-_]{3,25})$'
venue: scipy
collection: '2024'
kind: Article
path: papers/*
publish: true
secrets:
CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }}
GITHUB: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0b35634

Please sign in to comment.