Skip to content

ci: WIP: release

ci: WIP: release #120

Workflow file for this run

name: "Test"
on:
push:
pull_request:
permissions:
# To create a new release
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- name: linux
id: ubuntu-latest
- name: macos
id: macos-latest
runs-on: ${{ matrix.os.id }}
steps:
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
substituters = https://cl-nix-lite.cachix.org https://cache.nixos.org/
trusted-public-keys = cl-nix-lite.cachix.org-1:ab6+b0u2vxymMLcZ5DDqPKnxz0WObbMszmC+BDBHpFc= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v4
- name: Channel-based Nix
run: nix-build
- name: "Flake: regular build"
run: "nix build --print-build-logs"
# This will need to recompile SBCL
- name: "Flake: build with purged Nix references"
run: "nix build --print-build-logs ." #NOMERGE
- name: "Upload stand-alone binary"
uses: actions/upload-artifact@v4
with:
name: git-hly-${{ matrix.os.name }}-${{ github.sha }}
path: result/bin/git-hly
release:
if: ${{ github.ref == "refs/heads/master" }}

Check failure on line 44 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 44, Col: 9): Unexpected symbol: '"refs/heads/master"'. Located at position 15 within expression: github.ref == "refs/heads/master"
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- run: |
pwd
ls -R
tree
nocommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nobssoftware/nocommit@v2
name: nocommit