From f280f532a22700043ad599df9ebcb0377e90f603 Mon Sep 17 00:00:00 2001 From: Suho Lee Date: Thu, 30 Nov 2023 17:55:30 +0900 Subject: [PATCH] ci: for plugin upload `Lib9c.Plugin` is not yet exist but will prepared. --- .../lib9c_plugin_build_and_push_s3.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lib9c_plugin_build_and_push_s3.yaml diff --git a/.github/workflows/lib9c_plugin_build_and_push_s3.yaml b/.github/workflows/lib9c_plugin_build_and_push_s3.yaml new file mode 100644 index 0000000000..4634826a63 --- /dev/null +++ b/.github/workflows/lib9c_plugin_build_and_push_s3.yaml @@ -0,0 +1,30 @@ +name: lib9c plugin build and push s3 + +on: + workflow_dispatch: + +jobs: + s3-lib9c-plugin: + strategy: + matrix: + runtime: [ "osx-arm64", "linux-arm64", "linux-x64", "win-x64" ] + name: Publish Lib9c.Plugin (${{ 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.Plugin + run: dotnet publish ./.Lib9c.Plugin/Lib9c.Plugin.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.Plugin/${{ 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"