forked from herocode/horus
Update .gitea/workflows/release.yml
This commit is contained in:
@@ -9,6 +9,9 @@ jobs:
|
||||
build-release:
|
||||
name: Build Release Binaries
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
# Make sure warnings never fail the release build
|
||||
RUSTFLAGS: "--cap-lints=warn"
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -21,7 +24,7 @@ jobs:
|
||||
|
||||
- name: Extract version from tag
|
||||
id: version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build release binaries
|
||||
run: cargo build --workspace --release --verbose
|
||||
@@ -41,7 +44,6 @@ jobs:
|
||||
|
||||
- name: Package binaries
|
||||
run: |
|
||||
# Package each binary as a tarball
|
||||
for binary in supervisor coordinator horus osiris herorunner runner_osiris runner_sal; do
|
||||
if [ -f "target/release/$binary" ]; then
|
||||
tar -czf "release-artifacts/${binary}-${{ steps.version.outputs.VERSION }}-linux-x86_64.tar.gz" \
|
||||
@@ -59,10 +61,11 @@ jobs:
|
||||
cat checksums.txt
|
||||
|
||||
- name: Create Release
|
||||
uses: actions/gitea-release@v1
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
# or your mirror, e.g. actions/gitea-release-action@v1
|
||||
with:
|
||||
files: release-artifacts/*
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }} # make sure this PAT exists in Gitea
|
||||
tag_name: ${{ steps.version.outputs.VERSION }}
|
||||
name: Release ${{ steps.version.outputs.VERSION }}
|
||||
body: |
|
||||
|
||||
Reference in New Issue
Block a user