mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Redesign how GH actions are triggered. This new design uses a self-trigger to start jobs which are only started via workflow_calls. The main benefit of this is to be able to start workflows from various Infix Spins without needing to duplicate the workflow files in them. Upcoming patches are intended to parameterize to allow Spins to pass different architectures, brand names and such. Signed-off-by: Richard Alpe <richard@bit42.se>
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Publish latest Infix
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
publish:
|
|
name: Upload Latest Build
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
pattern: "artifact-*"
|
|
merge-multiple: true
|
|
|
|
- name: Create checksums ...
|
|
run: |
|
|
for file in *.tar.gz; do
|
|
sha256sum $file > $file.sha256
|
|
done
|
|
|
|
- uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitName: true
|
|
omitBody: true
|
|
omitBodyDuringUpdate: true
|
|
prerelease: true
|
|
tag: "latest"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
artifacts: "*.tar.gz*"
|
|
|
|
- name: Summary
|
|
run: |
|
|
cat <<EOF >> $GITHUB_STEP_SUMMARY
|
|
# Latest Build Complete! :rocket:
|
|
|
|
For the public download links of these build artifacts, please see:
|
|
<https://github.com/kernelkit/infix/releases/tag/latest>
|
|
EOF
|