Skip to content

Commit

Permalink
publish built artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmius committed Feb 9, 2024
1 parent 3af44bf commit 38317b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,9 @@ jobs:
with:
name: x-test-${{ runner.os }}-${{ runner.arch }}
path: tmp/test
- run: bash .github/workflows/publish.sh
shell: bash
- uses: actions/upload-artifact@v3
with:
name: gugugu-${{ runner.os }}-${{ runner.arch }}
path: build/release
12 changes: 12 additions & 0 deletions .github/workflows/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

ARCHIVE_NAME=gugugu-$GUGUGU_VERSION-$RUNNER_OS-$RUNNER_ARCH
PREPARING_DIR=build/preparing/$ARCHIVE_NAME
mkdir -p build/preparing/$ARCHIVE_NAME
stack $STACK_ARGS --local-bin-path=$PREPARING_DIR install

cp core/LICENSE $PREPARING_DIR/LICENSE
mkdir -p build/release
tar -czf build/release/$ARCHIVE_NAME.tar.gz -C build/preparing $ARCHIVE_NAME

0 comments on commit 38317b3

Please sign in to comment.