diff options
| author | diogo464 <[email protected]> | 2024-01-18 11:56:19 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-01-18 11:56:19 +0000 |
| commit | f8d8aaa035dd27c5bb33c1654d94b5b8612586d8 (patch) | |
| tree | f1d6d6808c60e78ac2d37161d804946d2597b8ce /dist.sh | |
| parent | 5b48457beb82b38f1a003af1ee34a3a7ad291af1 (diff) | |
added release workflow
Diffstat (limited to 'dist.sh')
| -rwxr-xr-x | dist.sh | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -0,0 +1,18 @@ | |||
| 1 | #!/usr/bin/sh | ||
| 2 | |||
| 3 | if [ "$VERSION" = "" ]; then | ||
| 4 | echo "VERSION missing" | ||
| 5 | exit 1 | ||
| 6 | fi | ||
| 7 | |||
| 8 | mkdir -p dist/ | ||
| 9 | cargo build --release --target-dir target/ || exit 1 | ||
| 10 | cp target/release/dotup . | ||
| 11 | rpm-assembler \ | ||
| 12 | --name dotup \ | ||
| 13 | --version $VERSION \ | ||
| 14 | --summary "Link dotfiles" \ | ||
| 15 | --arch x86_64 \ | ||
| 16 | --url https://git.d464.sh/code/dotup \ | ||
| 17 | dotup:/usr/bin/dotup:0755 || exit 1 | ||
| 18 | mv dotup *.rpm dist/ | ||
