Skip to content

Commit f1f93e8

Browse files
committed
ci: store artifacts after build
# Motivation To be able to build and release more automatic and less dependent on the local environment, we need to store the build artifacts in a place where we can access them later. # Changes Stores some of the build artifacts from the `dist` directory after a successful build. # Future work Use these artifacts to create a release together with autogenerated docs. # Quirks Ideally the artifacts should be built in a separate job to avoid potential contamination of the build environment. But because this is a paid `gorelease` feature we will just have to continue building all targets in one go.
1 parent 92408af commit f1f93e8

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/main.yml

+37
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,40 @@ jobs:
5858
args: release --clean ${{ env.flags }}
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
# This should have been a matrix, but building separate targets is a paid feature in `goreleaser`
62+
- uses: actions/upload-artifact@v4
63+
with:
64+
name: darwin-x86_64
65+
path: dist/warchaeology_Darwin_x86_64*.tar.gz
66+
- uses: actions/upload-artifact@v4
67+
with:
68+
name: linux-x86_64
69+
path: dist/warchaeology_Linux_x86_64.tar.gz
70+
- uses: actions/upload-artifact@v4
71+
with:
72+
name: linux-i386
73+
path: dist/warchaeology_Linux_i386.tar.gz
74+
- uses: actions/upload-artifact@v4
75+
with:
76+
name: windows-x86_64
77+
path: dist/warchaeology_Windows_x86_64.zip
78+
- uses: actions/upload-artifact@v4
79+
with:
80+
name: windows-i386
81+
path: dist/warchaeology_Windows_i386.zip
82+
- uses: actions/upload-artifact@v4
83+
with:
84+
name: deb-amd64
85+
path: dist/warchaeology_*amd64.deb
86+
- uses: actions/upload-artifact@v4
87+
with:
88+
name: deb-i386
89+
path: dist/warchaeology_*i386.deb
90+
- uses: actions/upload-artifact@v4
91+
with:
92+
name: rpm-x86_64
93+
path: dist/warchaeology-*x86_64.rpm
94+
- uses: actions/upload-artifact@v4
95+
with:
96+
name: rpm-i386
97+
path: dist/warchaeology-*i386.rpm

0 commit comments

Comments
 (0)