Skip to content

Release

Release #8

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
call-build-workflow:
uses: ./.github/workflows/build.yml
release:
runs-on: ubuntu-latest
needs: call-build-workflow
steps:
- name: Download sanoid-portable artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.call-build-workflow.outputs.artifact_name }}
- name: Assert sanoid-portable version matches Release version
run: |
sudo update-binfmts --install APE /bin/sh --magic MZqFpD
sudo chmod +x sanoid-portable
sanoid_version=$(./sanoid-portable --version)
release_version="${{ github.event.release.tag_name }}"
if [ "$release_version" != "$sanoid_version" ]; then
echo "Error: Release version \"$release_version\" does not match sanoid-portable version \"$sanoid_version\"."
exit 1
fi
echo "sanoid-portable: $sanoid_version"
sha256sum sanoid-portable
# - name: Upload sanoid-portable to Release Assets
# uses: softprops/action-gh-release@v2
# with:
# files: sanoid-portable