Skip to content

Commit 46467c3

Browse files
committed
Add latest release build
1 parent c6b8771 commit 46467c3

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/update_release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Upload 4cc
1+
name: Download
22

33
on:
44
push:
55
branches:
66
- master
7+
- latest_rolling_release
78
tags:
89
- v*
910

@@ -29,3 +30,21 @@ jobs:
2930
uses: softprops/action-gh-release@v2
3031
with:
3132
files: artifacts_dir/4cc-*.zip
33+
34+
latest:
35+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/latest_rolling_release'
36+
needs: build_4cc
37+
name: Upload Rolling Release
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: checkout
41+
uses: actions/checkout@v4
42+
- name: release
43+
run: gh release create latest --repo ${{ github.repository }} --title "Latest" || echo "Release 'latest' already exists, continuing..."
44+
- name: Download 4cc Artifacts
45+
uses: actions/download-artifact@v4
46+
- run: |
47+
cd artifacts_dir
48+
for f in ./* ; do zip -r "$f.zip" $f ; done;
49+
- name: Upload Artifacts to Release
50+
run: gh release upload latest artifacts_dir/4cc-*.zip --repo ${{ github.repository }} --clobber

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# 4Coder Community
2-
3-
Welcome to the 4coder community repository.
1+
# 4coder Community [![badge](https://github.com/4coder-community/4cc/actions/workflows/update_release.yml/badge.svg)](https://github.com/4coder-community/4cc/releases/)
42

53
# Building
64

0 commit comments

Comments
 (0)