Skip to content

Release

Release #6

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ${{ matrix.job.os }}
env:
PROJECT_NAME: point_tiler
strategy:
fail-fast: false
matrix:
job:
- {os: macos-latest, target: x86_64-apple-darwin, extension: ''}
- {os: macos-latest, target: aarch64-apple-darwin, extension: ''}
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-apple-darwin,aarch64-apple-darwin
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
workspaces: ./app
- name: Build
run: cargo build --release --target ${{ matrix.job.target }}
working-directory: ./app
- name: Rename artifact
run: |
mv ./app/target/${{ matrix.job.target }}/release/app \
./app/target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}-${{ github.ref_name }}-${{ matrix.job.target }}${{ matrix.job.extension }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Release ${{ github.ref_name }}
tag: ${{ github.ref_name }}
artifacts: ./app/target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}-${{ github.ref_name }}-${{ matrix.job.target }}${{ matrix.job.extension }}
artifactContentType: application/octet-stream
draft: false
prerelease: false