From da86c12fca8950a6ff78577a5d619bab01978c94 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Thu, 6 Apr 2023 11:57:33 -0500 Subject: [PATCH] ci: add build_patch_artifacts workflow (#2) --- .github/workflows/build_patch_artifacts.yaml | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build_patch_artifacts.yaml diff --git a/.github/workflows/build_patch_artifacts.yaml b/.github/workflows/build_patch_artifacts.yaml new file mode 100644 index 0000000..b172e6d --- /dev/null +++ b/.github/workflows/build_patch_artifacts.yaml @@ -0,0 +1,39 @@ +name: build_patch_artifacts + +permissions: + contents: write + +on: + push: + tags: + - patch-v[0-9]+.* + +jobs: + create-release: + runs-on: ubuntu-latest + + name: 📦 Create Release + + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + upload-artifacts: + strategy: + matrix: + os: ["ubuntu-latest", "macos-latest", "windows-latest"] + + runs-on: ${{ matrix.os }} + + name: 🦀 Upload Artifacts + + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: "patch" + tar: none + zip: all + token: ${{ secrets.GITHUB_TOKEN }}