Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 5519892059f56f02c4e2da8490c50f98b08e592b authored by vejnar on 05 April 2023, 16:19:02 UTC, committed by vejnar on 05 April 2023, 16:19:02 UTC
Add samtools_sort step
1 parent 6a60a87
  • Files
  • Changes
  • 1fb4720
  • /
  • .sourcehut
  • /
  • arch.yml
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:5519892059f56f02c4e2da8490c50f98b08e592b
directory badge Iframe embedding
swh:1:dir:b41b84d9774a6824ef9208e2598821401a64d681
content badge Iframe embedding
swh:1:cnt:66e6fe6fef750ecd31fd7f4833afd63a6b5bf208
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
arch.yml
image: archlinux
oauth: git.sr.ht/OBJECTS:RW git.sr.ht/REPOSITORIES:RO git.sr.ht/PROFILE:RO
sources:
    - git@git.sr.ht:~vejnar/LabxPipe
environment:
    repo: LabxPipe
    packages: hut python-build twine
secrets:
    - 0fa4be0f-f0ac-4763-855d-51d208629cfe # PyPI token
tasks:
    - update: |
        sudo pacman -Sy --noconfirm --noprogressbar archlinux-keyring
        sudo pacman -Syu --noconfirm --noprogressbar $packages
    - archive-tag: |
        cd $repo
        tag=$(git describe --exact-match 2>/dev/null || true)
        if [ -z "$tag" ]; then
            echo "Current commit is not a tag; abort task"
            exit 0
        fi

        # Publish archive
        version=$(echo "$tag" | tr -d 'v')
        git archive "v$version" -o "$repo-$version.tar.gz"
        hut git artifact upload --rev "$tag" "$repo-$version.tar.gz"
    - pypi-tag: |
        cd $repo
        tag=$(git describe --exact-match 2>/dev/null || true)
        if [ -z "$tag" ]; then
            echo "Current commit is not a tag; abort task"
            exit 0
        fi

        # Publish to PyPI
        set +x
        python3 -m build --sdist
        TWINE_USERNAME="__token__" \
        TWINE_PASSWORD="$(cat ~/.pypi_token)" \
        twine upload dist/*tar.gz
        set -x
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top