Skip to content

Commit

Permalink
feat: add release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
valerius committed Feb 11, 2024
1 parent d4a3aba commit c96219a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/rpi_aarch64_image_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,37 @@ jobs:
ISO_URL=$(curl --silent --show-error --progress-bar --upload-file $LOOP_IMAGE_PATH $TRANSFERSH_URL)
echo "ISO_URL=$ISO_URL" >> $GITHUB_ENV
echo "Uploaded $LOOP_IMAGE_PATH to $ISO_URL"
# create a release
- name: Create Release
if: success()
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Release of Archlinux ${{ env.ARM_VERSION }} Raspberry Pi Image for model ${{ env.RPI_MODEL }}.
**Changelog:**
- Custom Archlinux build for Raspberry Pi ${{ env.RPI_MODEL }}
- Architecture: ${{ env.ARM_VERSION }}
- Locale: ${{ env.DEFAULT_LOCALE }}
- Timezone: ${{ env.TIMEZONE }}
- Packages included: ${{ env.PACKAGES }}
The image is available for download: [Download Image]($ISO_URL)
draft: false
prerelease: false

- name: Notify Success
if: success()
run: |
SUCCESS_MESSAGE="🎉 Awesome! The Raspberry Pi image build succeeded 🚀\n\
This is a archlinux custom-built image for architecture ${{ env.ARM_VERSION }} for Raspberry Model ${{ env.RPI_MODEL }}\n\
Release of Archlinux ${{ env.ARM_VERSION }} Raspberry Pi Image for model ${{ env.RPI_MODEL }}.\n\
Author: ${{ github.actor }}\nBranch: ${{ github.ref }}\n\
Commit Message: ${{ github.event.head_commit.message }}\n\
[View Last Commit](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) 📜\n\
Expand Down

0 comments on commit c96219a

Please sign in to comment.