chore: add assets to releases (#6346)

* chore: change pipeline to add assets to the release
This commit is contained in:
Stefan Benz 2023-08-11 14:49:28 +02:00 committed by GitHub
parent 4123ab7ba7
commit 77e561af72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 8 deletions

View File

@ -70,12 +70,12 @@ jobs:
mv zitadel zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
cp LICENSE zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
cp README.md zitadel-${{ matrix.goos }}-${{ matrix.goarch }}/
tar -cvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
tar -czvf zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
-
uses: actions/upload-artifact@v3
with:
name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}
path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar
path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
checksums:
runs-on: ubuntu-latest
@ -87,7 +87,7 @@ jobs:
path: executables
-
name: move files one folder up
run: mv */*.tar . && find . -type d -empty -delete
run: mv */*.tar.gz . && find . -type d -empty -delete
working-directory: executables
-
run: sha256sum * > checksums.txt

View File

@ -70,7 +70,7 @@ jobs:
-
name: Unpack executable
run: |
tar -xvf .artifacts/zitadel-linux-${{ matrix.arch }}.tar
tar -xvf .artifacts/zitadel-linux-${{ matrix.arch }}.tar.gz
mv zitadel-linux-${{ matrix.arch }}/zitadel ./zitadel
-
name: Debug

View File

@ -22,7 +22,7 @@ jobs:
-
name: Unpack executable
run: |
tar -xvf .artifacts/zitadel-linux-amd64.tar
tar -xvf .artifacts/zitadel-linux-amd64.tar.gz
mv zitadel-linux-amd64/zitadel ./zitadel
-
name: Set up QEMU

View File

@ -27,6 +27,11 @@ jobs:
-
name: Source checkout
uses: actions/checkout@v3
-
uses: actions/download-artifact@v3
if: ${{ !inputs.dry_run }}
with:
path: .artifacts
-
name: Semantic Release
uses: cycjimmy/semantic-release-action@v3

View File

@ -1,11 +1,45 @@
module.exports = {
branches: [
{ name: "next" },
{ name: "next-rc", prerelease: "rc" }
{ name: "next-rc", prerelease: "rc" },
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
[
"@semantic-release/github",
{
assets: [
{
path: ".artifacts/zitadel-linux-amd64/zitadel-linux-amd64.tar.gz",
label: "zitadel-linux-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-linux-arm64/zitadel-linux-arm64.tar.gz",
label: "zitadel-linux-arm64.tar.gz",
},
{
path: ".artifacts/zitadel-windows-amd64/zitadel-windows-amd64.tar.gz",
label: "zitadel-windows-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-windows-arm64/zitadel-windows-arm64.tar.gz",
label: "zitadel-windows-arm64.tar.gz",
},
{
path: ".artifacts/zitadel-darwin-amd64/zitadel-darwin-amd64.tar.gz",
label: "zitadel-darwin-amd64.tar.gz",
},
{
path: ".artifacts/zitadel-darwin-arm64/zitadel-darwin-arm64.tar.gz",
label: "zitadel-darwin-arm64.tar.gz",
},
{
path: ".artifacts/checksums.txt",
label: "checksums.txt",
}
],
},
],
],
};