From 279166ddf7ae05967d8887a20179816712632d39 Mon Sep 17 00:00:00 2001 From: moreal Date: Tue, 8 Aug 2023 15:25:16 +0900 Subject: [PATCH] DONT MERGE --- .github/workflows/publish.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 647840aef..9bf6c8d5a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,9 @@ name: publish on: push: - branches: main + branches: + - main + - 0.4.0-publish-dont-merge jobs: nuget: @@ -33,3 +35,27 @@ jobs: fi env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + s3-lib9c-stateservice: + strategy: + matrix: + runtime: ["osx-arm64", "linux-arm64", "linux-x64", "win-x64"] + name: Publish Lib9c.StateService (${{ matrix.runtime }}) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.400 + - name: Publish Lib9c.StateService + run: dotnet publish ./.Lib9c.StateService/Lib9c.StateService.csproj -o out -r ${{ matrix.runtime }} + - name: Compress the build result + run: zip -r ../${{ matrix.runtime }}.zip . + working-directory: ./out + - name: Upload S3 + run: aws s3 cp ${{ matrix.runtime }}.zip s3://9c-dx/lib9c-stateservices/${{ github.sha }}/ + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: "us-east-2"