Skip to content

Re-add macos-13 runner for x86_64 build #7

Re-add macos-13 runner for x86_64 build

Re-add macos-13 runner for x86_64 build #7

Workflow file for this run

name: Deploy
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.tag }}
steps:
- name: Get tag name
id: tag
run: |
tag=$(basename "${{ github.ref }}")
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
tag="${{ steps.tag.outputs.tag }}"
echo "Tag: $tag"
gh release create "$tag" --title "$tag"
build:
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
needs: [release]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Haskell and Stack
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-version: 'latest'
- name: Build and archive
shell: bash
run: scripts/make-bindist
- name: Upload
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
shell: bash
run: gh release upload "${{ needs.release.outputs.tag }}" bindists/*