feat: sdk 0.9.0 release prep (#332) #43
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| - "[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+" | |
| jobs: | |
| release-draft: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: softprops/action-gh-release@v2 | |
| common-dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: bazel run --config=ci //:copy_dist_include | |
| - run: bazel run --config=ci //:copy_dist_images | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: common-dist | |
| path: dist | |
| windows-x64-binaries: | |
| runs-on: windows-latest | |
| steps: | |
| - name: bazel visual studio 17.6 workaround # https://github.com/bazelbuild/bazel/issues/18592 | |
| run: Remove-Item -Path "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\vcpkg" -Force -Recurse | |
| - uses: actions/checkout@v4 | |
| - run: bazel run --config=ci //:copy_dist_bin | |
| - run: bazel run --config=ci //:copy_dist_codegen_plugins | |
| - run: bazel run --config=ci //:copy_dist_recipe_bundles | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-x64-binaries | |
| path: dist | |
| linux-x64-binaries: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: bazel run --config=ci //:copy_dist_bin | |
| - run: bazel run --config=ci //:copy_dist_codegen_plugins | |
| - run: bazel run --config=ci //:copy_dist_recipe_bundles | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-x64-binaries | |
| path: dist | |
| linux-x64-archive: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - common-dist | |
| - linux-x64-binaries | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: common-dist | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-x64-binaries | |
| # https://github.com/actions/upload-artifact#permission-loss | |
| - run: chmod +x bin/ecsact bin/ecsact_lsp_server | |
| - run: tar -czf ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz bin include share | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-x64-archive | |
| path: ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz | |
| amd64-deb-package: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - common-dist | |
| - linux-x64-binaries | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: common-dist | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-x64-binaries | |
| # https://github.com/actions/upload-artifact#permission-loss | |
| - run: chmod +x bin/ecsact bin/ecsact_lsp_server | |
| - shell: pwsh | |
| run: ./CreateDeb.ps1 -Version ${{github.ref_name}} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: amd64-deb-package | |
| path: ecsact_sdk_${{github.ref_name}}_amd64.deb | |
| windows-x64-archive: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - common-dist | |
| - windows-x64-binaries | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: common-dist | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: windows-x64-binaries | |
| - run: > | |
| zip -r ecsact_sdk_${{github.ref_name}}_windows_x64.zip bin include share | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: windows-x64-archive | |
| path: ecsact_sdk_${{github.ref_name}}_windows_x64.zip | |
| release-upload-linux-x64-archive: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - release-draft | |
| - linux-x64-archive | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-x64-archive | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| fail_on_unmatched_files: true | |
| files: ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz | |
| release-upload-amd64-deb-package: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - release-draft | |
| - amd64-deb-package | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: amd64-deb-package | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| fail_on_unmatched_files: true | |
| files: ecsact_sdk_${{github.ref_name}}_amd64.deb | |
| release-upload-windows-x64-archive: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - release-draft | |
| - windows-x64-archive | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: windows-x64-archive | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| fail_on_unmatched_files: true | |
| files: ecsact_sdk_${{github.ref_name}}_windows_x64.zip | |
| release-finish: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - release-upload-windows-x64-archive | |
| - release-upload-linux-x64-archive | |
| - release-upload-amd64-deb-package | |
| steps: | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| name: ${{github.ref_name}} | |
| generate_release_notes: true | |