Skip to content

Commit a045480

Browse files
committed
Put binaries in release artifacts instead of git tree
1 parent ea78019 commit a045480

13 files changed

+17
-17
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ jobs:
6868
- name: Remove target-triplet
6969
run: rm target-triplet
7070

71-
- name: Push new binaries
72-
run: |
73-
set -ex
74-
git config user.name 'mintsuki'
75-
git config user.email '[email protected]'
76-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/osdev0/libgcc-binaries.git
77-
while true; do \
78-
git pull --all; \
79-
git add .; \
80-
git commit -m "Upload binaries (${{matrix.target_arch}}) [ci skip]"; \
81-
if git push origin trunk; then \
82-
break; \
83-
else \
84-
git reset HEAD~1; \
85-
fi; \
86-
done
71+
- name: Set TAG_DATE variable
72+
run: echo "TAG_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
73+
74+
- name: Tag new release
75+
run: git tag $TAG_DATE && git push --tags
76+
77+
- name: Create new release
78+
uses: softprops/action-gh-release@v2
79+
with:
80+
name: Release ${{ env.TAG_DATE }}
81+
tag_name: ${{ env.TAG_DATE }}
82+
files: |
83+
COPYING*
84+
*.a
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

libgcc-aarch64.a

-1.69 MB
Binary file not shown.

libgcc-arm.a

-9.19 MB
Binary file not shown.

libgcc-i386.a

-1.28 MB
Binary file not shown.

libgcc-i686.a

-1.29 MB
Binary file not shown.

libgcc-loongarch64-softfloat.a

-21 MB
Binary file not shown.

libgcc-loongarch64.a

-22.2 MB
Binary file not shown.

libgcc-m68k.a

-544 KB
Binary file not shown.

libgcc-riscv64-softfloat.a

-4.78 MB
Binary file not shown.

libgcc-riscv64.a

-4.81 MB
Binary file not shown.

0 commit comments

Comments
 (0)