From 6216ab0092996869ea00c39c38cf3605ec8db410 Mon Sep 17 00:00:00 2001 From: apple-yagi Date: Sun, 14 Jan 2024 19:08:23 +0900 Subject: [PATCH] Add release.yml --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..61616e4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Release + +on: + release: + types: [created] + +permissions: + packages: write + contents: read + pull-requests: read + deployments: write + +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + include: + - target: x86_64-apple-darwin + archive: zip + + steps: + - uses: actions/checkout@master + - name: Compile and release + uses: rust-build/rust-build.action@v1.4.4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: ${{ matrix.archive }}