From f6961c19b7540f01452e936c184e4961e35044ec Mon Sep 17 00:00:00 2001 From: Franklin Koch Date: Fri, 4 Oct 2024 15:07:42 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20Upgrade=20to=20new=20curvenote?= =?UTF-8?q?=20submit=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/draft.yml | 21 +++++++++++++++++++++ .github/workflows/publish.yml | 14 ++++---------- .github/workflows/submit.yml | 22 ++++++++++++++++++++++ 3 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/draft.yml create mode 100644 .github/workflows/submit.yml 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 }}