added build artifacts to releases

This commit is contained in:
Letro Bot
2026-04-28 15:28:29 +03:30
parent d6002418b3
commit 05ed3724bd

View File

@@ -8,8 +8,7 @@ name: Build
on: on:
push: push:
branches: branches:
# - main - main
- "release/**"
tags: tags:
- "letro-v*" - "letro-v*"
@@ -309,24 +308,39 @@ jobs:
release: release:
name: Release name: Release
if: false if: startsWith(github.ref, 'refs/tags/letro-v')
# if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: needs:
- assemble-archives
- build-image - build-image
permissions:
contents: write
steps: steps:
- name: Download the artifacts from the previous job - name: Checkout the code (full history for diff)
uses: actions/download-artifact@v8 uses: actions/checkout@v6
with: with:
pattern: mas-cli-* fetch-depth: 0
path: artifacts
merge-multiple: true - name: Read upstream commit from UPSTREAM_VERSION
id: upstream
run: |
echo "commit=$(grep '^commit:' UPSTREAM_VERSION | awk '{print $2}')" >> "$GITHUB_OUTPUT"
- name: Fetch upstream commit
run: git fetch origin "${{ steps.upstream.outputs.commit }}" || git fetch https://github.com/element-hq/matrix-authentication-service.git "${{ steps.upstream.outputs.commit }}"
- name: Generate git diff from upstream
run: |
git diff "${{ steps.upstream.outputs.commit }}" HEAD -- \
':!LETRO_VERSION' ':!FORK_DIVERGANCE.md' ':!UPSTREAM_VERSION' \
> fork-changes.diff
- name: Prepare a release - name: Prepare a release
uses: softprops/action-gh-release@v2.6.1 uses: softprops/action-gh-release@v2.6.1
with: with:
generate_release_notes: true generate_release_notes: true
prerelease: ${{ contains(github.ref_name, '-rc.') }}
body: | body: |
### Docker image ### Docker image
@@ -355,17 +369,15 @@ jobs:
``` ```
files: | files: |
artifacts/mas-cli-x86_64-linux.tar.gz fork-changes.diff
draft: true FORK_DIVERGANCE.md
unstable: unstable:
name: Update the unstable release name: Update the unstable release
if: false if: github.ref == 'refs/heads/main'
# if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: needs:
- assemble-archives
- build-image - build-image
permissions: permissions:
@@ -378,13 +390,6 @@ jobs:
sparse-checkout: | sparse-checkout: |
.github/scripts .github/scripts
- name: Download the artifacts from the previous job
uses: actions/download-artifact@v8
with:
pattern: mas-cli-*
path: artifacts
merge-multiple: true
- name: Update unstable git tag - name: Update unstable git tag
uses: actions/github-script@v8.0.0 uses: actions/github-script@v8.0.0
with: with:
@@ -431,8 +436,6 @@ jobs:
') }} ') }}
``` ```
files: |
artifacts/mas-cli-x86_64-linux.tar.gz
prerelease: true prerelease: true
make_latest: false make_latest: false