Skip to content

Commit

Permalink
ci(gh-actions): upload lib9c-stateservice build result
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Aug 1, 2023
1 parent 5a86999 commit 2d7ea65
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,26 @@ 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 }}/
with:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 2d7ea65

Please sign in to comment.