From b4495ab35fcc46216494d5e92a94df25db339d32 Mon Sep 17 00:00:00 2001 From: Georgios Varnavides Date: Thu, 19 Sep 2024 10:19:54 -0700 Subject: [PATCH] adding workflows -- wont work until myst yml properly set --- .github/workflows/draft.yml | 18 ++++++++++++++++++ .github/workflows/submit.yml | 17 +++++++++++++++++ .gitignore | 4 ++++ 3 files changed, 39 insertions(+) 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 0000000..91adc39 --- /dev/null +++ b/.github/workflows/draft.yml @@ -0,0 +1,18 @@ +name: Create Preview Draft from PR +on: + pull_request: + branches: ['main'] +permissions: + contents: read + pull-requests: write +jobs: + draft: + uses: curvenote/actions/.github/workflows/draft.yml@v1 + with: + venue: microscopy + kind: article + collection: articles + id-pattern-regex: '^msa-em-[a-zA-Z0-9_-]{1,30}$' + 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 0000000..8a0638a --- /dev/null +++ b/.github/workflows/submit.yml @@ -0,0 +1,17 @@ +name: Create Submission from Main +on: + push: + branches: ['main'] +permissions: + contents: write +jobs: + submit: + uses: curvenote/actions/.github/workflows/submit.yml@v1 + with: + venue: microscopy + kind: article + collection: articles + id-pattern-regex: '^msa-em-[a-zA-Z0-9_-]{1,30}$' + secrets: + CURVENOTE: ${{ secrets.CURVENOTE_TOKEN }} + GITHUB: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index e35d885..f2a36cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ _build + +.ipynb_checkpoints/ + +.DS_Store