Skip to content

Commit

Permalink
Feature dtcenter/METplus-Internal#15 checksum for release (#1769)
Browse files Browse the repository at this point in the history
Co-authored-by: Julie Prestopnik <jpresto@ucar.edu>
  • Loading branch information
georgemccabe and jprestop committed Sep 8, 2022
1 parent cb80ee9 commit 6043797
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release-checksum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Add checksum to release

on:
release:
types:
- published

jobs:
add-checksum:
runs-on: ubuntu-latest
steps:
- uses: dtcenter/metplus-action-release-checksum@v1
with:
token: ${{ secrets.METPLUS_BOT_TOKEN }}
23 changes: 23 additions & 0 deletions docs/Users_Guide/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,29 @@ Get the source code via Web Browser
- Click on the 'Source code' link (either the *zip* or *tar.gz*) under Assets
and when prompted, save it to the directory.

- (Optional) Verify the checksum of the source code download

- Download the checksum file that corresponds to the source code download
link that was used (checksum_zip.txt for the *zip* file and
checksum_tar.txt for the *tar.gz* file).
Put the checksum file into the same directory as the source code file.
- Run the *sha256sum* command with the --check argument to verify that the
source code download file was not corrupted.

Zip File::

sha256sum --check checksum_zip.txt

Tar File::

sha256sum --check checksum_tar.txt

Note: If the source code is downloaded using wget, then the filenames will not
match the filenames listed in the checksum files. If the source code is
downloaded using curl, the *-LJO* flags should be added to the command to
preserve the expected filenames found in the checksum files.


- Uncompress the source code (on Linux/Unix\ *: gunzip* for zip file or
*tar xvfz* for the tar.gz file)

Expand Down
Binary file modified docs/_static/metplus_repo_releases_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6043797

Please sign in to comment.