Skip to content

Commit

Permalink
Adding action to post artifact (#90)
Browse files Browse the repository at this point in the history
* Adding action to post artifact

* Forgot to add path

* Forgot to update news

* Fixing enum
  • Loading branch information
gvegayon authored Oct 25, 2024
1 parent 5f65bed commit 338f0ec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4

Expand All @@ -39,6 +40,21 @@ jobs:
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Save artifact
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v4
with:
name: pkgdown-site
path: ./docs
retention-days: 7

- name: Post to PR
uses: CDCgov/cfa-actions/[email protected]
if: ${{ github.event_name == 'pull_request' }}
with:
artifact-name: pkgdown-site
gh-token: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CFAEpiNow2Pipeline (development version)

* Adding new action to post a comment on PRs with a link to the rendered pkgdown site.
* Re-organizing GitHub workflows.
* Checks if batch pool exists. Pools are named after branches. Also allows for deletion via commit message.
* Merges workflows 1 and 2 into a single workflow.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ In this workflow, task IDs correspond to location specific model runs (which are
│ ├── job_metadata.json
```

`<output>/`: The base output directory. This could, for example, be `/` in a Docker container or dedicated output directory.
- `<output>/`: The base output directory. This could, for example, be `/` in a Docker container or dedicated output directory.
- `job_<job_id>/`: A directory named after the specific job identifier, containing all outputs related to that job. All tasks within a job share this same top-level directory.
- `raw_samples/`: A subdirectory within each job folder that holds the raw sample files from all tasks in the job. Task-specific *draws* output files all live together in this directory to enable easy globbing over task-partitioned outputs.
- `samples_<task_id>.parquet`: A file containing raw samples from the model, associated with a particular task identifier. This file has columns `job_id`, `task_id`, `geo_value`, `disease`, `model`, `_draw`, `_chain`, `_iteration`, `_variable`, `value`, and `reference_date`. These variables follow the [{tidybayes}](https://mjskay.github.io/tidybayes/articles/tidybayes.html) specification.
Expand Down

0 comments on commit 338f0ec

Please sign in to comment.