diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 040d278..9230273 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,7 +9,6 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - name: download archive to runner env: @@ -22,7 +21,31 @@ jobs: echo "archive=${name}" >> $GITHUB_ENV - name: Run Zenodo Deploy + id: deploy with: version: ${{ github.event.release.tag_name }} zenodo_json: .zenodo.json archive: ${{ env.archive }} + + - name: View Outputs + env: + doi: ${{ steps.deploy.outputs.doi }} + conceptdoi: ${{ steps.deploy.outputs.conceptdoi }} + conceptbadge: ${{ steps.deploy.outputs.conceptbadge }} + badge: ${{ steps.deploy.outputs.badge }} + bucket: ${{ steps.deploy.outputs.bucket }} + latest: ${{ steps.deploy.outputs.latest }} + latest_html: ${{ steps.deploy.outputs.latest_html }} + record: ${{ steps.deploy.outputs.record }} + record_html: ${{ steps.deploy.outputs.record_html }} + run: | + echo "doi ${doi}" + echo "conceptdoi ${conceptdoi}" + echo "conceptbadge ${conceptbadge}" + echo "badge ${badge}" + echo "bucket ${bucket}" + echo "latest ${latest}" + echo "latest html ${latest_html}" + echo "record ${record}" + echo "record html ${record_html}" + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c48fb71 --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright © 2022, Vanessa Sochat + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + diff --git a/README.md b/README.md index 3a3bd32..fd18416 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,38 @@ jobs: Notice how we are choosing to use the .tar.gz (you could use the zip too at `${{ github.event.release.zipball_url }}`) and using the default zenodo.json that is obtained from the checked out repository. We also grab the version as the release tag. We are also running on the publication of a release. +If you want to see or do something with the outputs, add an `id` to the deploy step and do: + +```yaml + - name: Run Zenodo Deploy + id: deploy + with: + version: ${{ github.event.release.tag_name }} + zenodo_json: .zenodo.json + archive: ${{ env.archive }} + + - name: View Outputs + env: + doi: ${{ steps.deploy.outputs.doi }} + conceptdoi: ${{ steps.deploy.outputs.conceptdoi }} + conceptbadge: ${{ steps.deploy.outputs.conceptbadge }} + badge: ${{ steps.deploy.outputs.badge }} + bucket: ${{ steps.deploy.outputs.bucket }} + latest: ${{ steps.deploy.outputs.latest }} + latest_html: ${{ steps.deploy.outputs.latest_html }} + record: ${{ steps.deploy.outputs.record }} + record_html: ${{ steps.deploy.outputs.record_html }} + run: | + echo "doi ${doi}" + echo "conceptdoi ${conceptdoi}" + echo "conceptbadge ${conceptbadge}" + echo "badge ${badge}" + echo "bucket ${bucket}" + echo "latest ${latest}" + echo "latest html ${latest_html}" + echo "record ${record}" + echo "record html ${record_html}" +``` ### Local