2
0

release.yml 662 B

123456789101112131415161718192021222324252627
  1. name: Release
  2. on:
  3. release:
  4. types: [ published ]
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v3
  10. - name: Extract release version
  11. run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
  12. - name: Build the plugins
  13. run: make plugins
  14. - name: Zip the plugins
  15. run: |
  16. zip protoc-grpc-swift-plugins-linux-x86_64-${{ env.RELEASE_VERSION }}.zip protoc-gen-swift protoc-gen-grpc-swift
  17. - name: Upload artifacts
  18. uses: softprops/action-gh-release@v1
  19. with:
  20. files: protoc-grpc-swift-plugins-linux-x86_64-${{ env.RELEASE_VERSION }}.zip