diff options
author | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-24 03:37:44 +0100 |
---|---|---|
committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2024-04-24 04:06:25 +0100 |
commit | d1194e260880f2d37f64197b3cbd567015c08e46 (patch) | |
tree | d6cdd454386db63df1cb6e7bd36e32d9f6e40036 /.github/workflows/release.yml | |
parent | 3d7f7e99357b72588dc401b68761ddf0f4b17431 (diff) | |
download | sentrum-d1194e260880f2d37f64197b3cbd567015c08e46.tar.gz sentrum-d1194e260880f2d37f64197b3cbd567015c08e46.tar.bz2 sentrum-d1194e260880f2d37f64197b3cbd567015c08e46.zip |
Change tarball inner structure
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37d8ec8..66d8f37 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,13 +11,13 @@ jobs: include: - os: ubuntu-latest bin: sentrum - name: sentrum-${{ github.ref_name }}-linux-x86_64.tar.gz + name: sentrum-${{ github.ref_name }}-linux-x86_64 - os: windows-latest bin: sentrum.exe - name: sentrum-${{ github.ref_name }}-windows-x86_64.zip + name: sentrum-${{ github.ref_name }}-windows-x86_64 - os: macos-latest bin: sentrum - name: sentrum-${{ github.ref_name }}-darwin-x86_64.tar.gz + name: sentrum-${{ github.ref_name }}-darwin-x86_64 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -25,16 +25,20 @@ jobs: with: toolchain: stable - uses: Swatinem/rust-cache@v2 - - run: cargo build --release + - run: cargo build --locked --release - name: Package shell: bash run: | strip target/release/${{ matrix.bin }} + mkdir ${{ matrix.name }} + cp target/release/${{ matrix.bin }} ${{ matrix.name }} + cp sentrum.sample.toml ${{ matrix.name }} + cp contrib/sentrum.service ${{ matrix.name }} if [[ "${{ matrix.os }}" == "windows-latest" ]] then - 7z a ${{ matrix.name }} target/release/${{ matrix.bin }} sentrum.sample.toml contrib/sentrum.service + 7z a ${{ matrix.name }}.zip ${{ matrix.name }} else - tar czvf ${{ matrix.name }} target/release/${{ matrix.bin }} sentrum.sample.toml contrib/sentrum.service + tar czvf ${{ matrix.name }}.tar.gz ${{ matrix.name }} fi - name: Generate Changelog run: utils/generate_changelog.sh ${{ github.ref_name }} > ${{ github.workspace }}-CHANGELOG.md |