소스 검색

Upload linux release artifacts (#1295)

Franz Busch 4 년 전
부모
커밋
72f9bbcd1a
1개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 27 0
      .github/workflows/release.yml

+ 27 - 0
.github/workflows/release.yml

@@ -0,0 +1,27 @@
+name: Release
+
+on:
+  release:
+    types: [ published ]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+      - uses: actions/checkout@v2
+      
+      - name: Extract release version
+        run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+
+      - name: Build the plugins
+        run: make plugins
+
+      - name: Zip the plugins
+        run: |
+          zip protoc-grpc-swift-plugins-linux-x86_64-${{ env.RELEASE_VERSION }}.zip protoc-gen-swift protoc-gen-grpc-swift
+      
+      - name: Upload artifacts
+        uses: softprops/action-gh-release@v1
+        with:
+          files: protoc-grpc-swift-plugins-linux-x86_64-${{ env.RELEASE_VERSION }}.zip