Skip to content

Commit 6db4fd4

Browse files
authored
Update readme (#16)
* Update README.md * Update README.md
1 parent 3d51659 commit 6db4fd4

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dataverse Uploader
22

33
This action automatically uploads GitHub repository content to a Dataverse dataset.
4-
It can upload the entire repository or its subdirectory into an existing dataset on a target
4+
It can upload the entire repository or its subdirectories into an existing dataset on a target
55
Dataverse installation. The action is customizable, allowing you to fully replace a dataset,
66
add to the dataset, publish it or leave it as a draft version on Dataverse.
77

@@ -17,7 +17,7 @@ To use this action, you will need the following input parameters:
1717
| `DATAVERSE_TOKEN` | **Yes** | This is your personal access token that you can create at your Dataverse instance (see [the Dataverse guide](https://guides.dataverse.org/en/latest/user/account.html#how-to-create-your-api-token)). Save your token as a secret variable called `DATAVERSE_TOKEN` in your GitHub repository that you want to upload to Dataverse (see [the GitHub guide](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository)). |
1818
| `DATAVERSE_SERVER` | **Yes** | The URL of your Dataverse installation, i.e., [https://dataverse.harvard.edu](https://dataverse.harvard.edu). |
1919
| `DATAVERSE_DATASET_DOI` | **Yes** | This action requires that a dataset (with a DOI) exists on the Dataverse server. Make sure to specify your DOI in this format: `doi:<doi>`, i.e., `doi:10.70122/FK2/LVUA`. |
20-
| `GITHUB_DIR` | No | Use `GITHUB_DIR` if you would like to upload files from only a specific subdirectory in your GitHub repository (i.e., just `data/`). |
20+
| `GITHUB_DIR` | No | Use `GITHUB_DIR` if you would like to upload files from only one or more subdirectories in your GitHub repository (i.e., `data/`, `plots/`). |
2121
| `DELETE` | No | Can be `True` or `False` (by default `True`) depending on whether all files should be deleted in the dataset on Dataverse before upload. |
2222
| `PUBLISH` | No | Can be `True` or `False` (by default `False`) depending on whether you'd like to automatically create a new version of the dataset upon upload. If `False`, the uploaded dataset will be a `DRAFT`. |
2323

@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Send repo to Dataverse
42-
uses: IQSS/dataverse-uploader@v1.3
42+
uses: IQSS/dataverse-uploader@v1.4
4343
with:
4444
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
4545
DATAVERSE_SERVER: https://demo.dataverse.org
@@ -52,20 +52,20 @@ you should add the `GITHUB_DIR` argument in your workflow, as follows:
5252
```
5353
steps:
5454
- name: Send repo to Dataverse
55-
uses: IQSS/dataverse-uploader@v1.3
55+
uses: IQSS/dataverse-uploader@v1.4
5656
with:
5757
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
5858
DATAVERSE_SERVER: https://demo.dataverse.org
5959
DATAVERSE_DATASET_DOI: doi:10.70122/FK2/LVUA
6060
GITHUB_DIR: data
6161
```
6262

63-
You can upload multiple subdirectories (only) by listing them as `GITHUB_DIR` in the following format:
63+
You can upload multiple subdirectories by listing them as `GITHUB_DIR` like `GITHUB_DIR: data,plots`, or in the following format:
6464

6565
```
6666
steps:
6767
- name: Send repo to Dataverse
68-
uses: IQSS/dataverse-uploader@v1.2
68+
uses: IQSS/dataverse-uploader@v1.4
6969
with:
7070
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
7171
DATAVERSE_SERVER: https://demo.dataverse.org
@@ -83,7 +83,7 @@ set the `DELETE` argument to `False` like:
8383
```
8484
steps:
8585
- name: Send repo to Dataverse
86-
uses: IQSS/dataverse-uploader@v1.3
86+
uses: IQSS/dataverse-uploader@v1.4
8787
with:
8888
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
8989
DATAVERSE_SERVER: https://demo.dataverse.org
@@ -99,7 +99,7 @@ set the `PUBLISH` argument to `True`.
9999
```
100100
steps:
101101
- name: Send repo to Dataverse
102-
uses: IQSS/dataverse-uploader@v1.3
102+
uses: IQSS/dataverse-uploader@v1.4
103103
with:
104104
DATAVERSE_TOKEN: ${{secrets.DATAVERSE_TOKEN}}
105105
DATAVERSE_SERVER: https://demo.dataverse.org
@@ -111,18 +111,21 @@ steps:
111111

112112
## Q&A
113113

114-
> If you change the content of your GitHub repository, are the changes synchronized in Dataverse?
115-
> Otherwise, is it possible to synchronize them automatically?
114+
1. **If you change the content of your GitHub repository, are the changes synchronized in Dataverse? Otherwise, is it possible to synchronize them automatically?**
116115

117116
Yes, the action is able to automatically update the Dataverse dataset. In other words, if the action
118117
is triggered with every `push` to the GitHub repository, it will automatically upload its content to
119118
Dataverse. You specify the action triggers in the workflow (`.yml`) file, and in this case, it would
120119
contain `on: push` line to execute the action on every push to the repository.
121120

122-
> Will the action work with dataset Handles as persistent identifiers (PIDs) instead of DOIs?
121+
2. **Will the action work with dataset Handles as persistent identifiers (PIDs) instead of DOIs?**
123122

124123
Yes, the action uses Dataverse API that supports both DOIs and Handles for retrieving and uploading data.
125124

125+
3. **How do I contribute to this project?**
126+
127+
Have a look at the instructions in the `CONTRIBUTING.md` file.
128+
126129
## Related projects
127130

128131
Check out the following related projects:

0 commit comments

Comments
 (0)