diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb50743..03d587a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,27 +1,51 @@ +name: Release + +permissions: + contents: write + on: - release: - types: [created] + push: + tags: + - v[0-9]+.* jobs: - release: - name: release ${{ matrix.target }} + create-release: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + # with: + # (optional) + # changelog: CHANGELOG.md + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + upload-assets: strategy: - fail-fast: false matrix: - include: - - target: x86_64-pc-windows-gnu - archive: tar.gz zip - - target: x86_64-unknown-linux-musl - archive: tar.gz tar.xz + os: + - target: aarch64-apple-darwin + os: macos-latest - target: x86_64-apple-darwin - archive: tar.gz zip + os: macos-lates + - ubuntu-latest + - windows-latest + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@master - - name: Compile and release - uses: rust-build/rust-build.action@v1.3.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 with: - RUSTTARGET: ${{ matrix.target }} - ARCHIVE_TYPES: ${{ matrix.archive }} \ No newline at end of file + # (required) + bin: git-ct + # (optional) On which platform to distribute the `.tar.gz` file. + # [default value: unix] + # [possible values: all, unix, windows, none] + tar: all + # (optional) On which platform to distribute the `.zip` file. + # [default value: windows] + # [possible values: all, unix, windows, none] + # zip: windows + env: + # (required) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file