|
14 | 14 | uses: dawidd6/action-download-artifact@d0f291cf39bd21965ea9c4c6e210fc355c3844ed |
15 | 15 | with: |
16 | 16 | workflow: main.yml |
17 | | - commit: ${{ github.sha }} |
| 17 | + commit: 11777136f471106f93aac9bb157f6e7050244987 |
18 | 18 | path: ${{ github.workspace }}/Realm/packages/ |
19 | 19 | - name: Read version |
20 | 20 | id: get-version |
|
23 | 23 | $nupkgName -match "(?sm)\d{1,2}\.\d{1,2}\.\d{1,2}(?:-[a-zA-Z]*\.\d{1,2})?" |
24 | 24 | $version = $Matches[0] |
25 | 25 | echo "::set-output name=version::$version" |
26 | | - - name: Configure AWS Credentials |
27 | | - uses: aws-actions/configure-aws-credentials@v1 |
28 | | - with: |
29 | | - aws-access-key-id: ${{ secrets.DOCS_S3_ACCESS_KEY }} |
30 | | - aws-secret-access-key: ${{ secrets.DOCS_S3_SECRET_KEY }} |
31 | | - aws-region: us-east-2 |
32 | | - - name: Upload docs |
33 | | - run: | |
34 | | - Expand-Archive -Path Realm/packages/Docs.zip/Docs.zip -DestinationPath Realm/packages |
35 | | - $versions = "${{ steps.get-version.outputs.version }}", "latest" |
36 | | - Foreach ($ver in $versions) |
37 | | - { |
38 | | - aws s3 sync --acl public-read "${{ github.workspace }}\Realm\packages\_site" s3://realm-sdks/realm-sdks/dotnet/$ver/ |
39 | | - } |
40 | | - - name: NuGet Publish Realm.Fody.${{ steps.get-version.outputs.version }} |
41 | | - run: dotnet nuget push ${{ github.workspace }}/Realm/packages/Realm.Fody.${{ steps.get-version.outputs.version }}/Realm.Fody.${{ steps.get-version.outputs.version }}.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |
42 | | - - name: NuGet Publish Realm.${{ steps.get-version.outputs.version }} |
43 | | - run: dotnet nuget push ${{ github.workspace }}/Realm/packages/Realm.${{ steps.get-version.outputs.version }}/Realm.${{ steps.get-version.outputs.version }}.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |
44 | | - - uses: actions/setup-node@v2 |
45 | | - with: |
46 | | - node-version: 12.x |
47 | | - registry-url: https://registry.npmjs.org |
48 | | - - name: Npm Publish io.realm.unity-${{ steps.get-version.outputs.version }} |
49 | | - run: npm publish ${{ github.workspace }}/Realm/packages/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz/io.realm.unity-${{ steps.get-version.outputs.version }}.tgz |
50 | | - env: |
51 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
52 | 26 | - name: Find Release PR |
53 | 27 | uses: juliangruber/find-pull-request-action@f9f7484f8237cf8485e5ab826e542ba5dd9e9c6e |
54 | 28 | id: find-pull-request |
|
0 commit comments