Skip to content

Commit 1b99641

Browse files
ci: upload artifacts to releases automatically
1 parent 55ff5f8 commit 1b99641

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/rust.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,33 @@ jobs:
8181
name: osx
8282
path: |
8383
./target/release/cele-mod
84+
release:
85+
needs: [build-windows, build-linux, build-osx]
86+
runs-on: ubuntu-latest
87+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
88+
steps:
89+
- uses: actions/checkout@v3
90+
- name: Get version
91+
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV
92+
- uses: actions/download-artifact@v4
93+
with:
94+
name: windows
95+
path: artifacts/windows/
96+
- uses: actions/download-artifact@v4
97+
with:
98+
name: linux
99+
path: artifacts/linux/
100+
- uses: actions/download-artifact@v4
101+
with:
102+
name: osx
103+
path: artifacts/osx/
104+
- name: Create Release
105+
uses: softprops/action-gh-release@v1
106+
with:
107+
tag_name: v${{ env.VERSION }}
108+
files: |
109+
artifacts/windows/*
110+
artifacts/linux/*
111+
artifacts/osx/*
112+
env:
113+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)