diff --git a/.github/workflows/draft.yml b/.github/workflows/draft.yml new file mode 100644 index 0000000000..5d63f00cd0 --- /dev/null +++ b/.github/workflows/draft.yml @@ -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 }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 871d71fd21..b179d5d216 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml new file mode 100644 index 0000000000..f047745e8b --- /dev/null +++ b/.github/workflows/submit.yml @@ -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 }}