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

  • a48d13f
  • /
  • .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.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:66e6fe6fef750ecd31fd7f4833afd63a6b5bf208
directory badge Iframe embedding
swh:1:dir:b41b84d9774a6824ef9208e2598821401a64d681
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.

  • content
  • directory
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

back to top

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