release: init action to create release with buildkite artifacts (#150)

* buildkite: also build x86_64-darwin

* release: init action to create release with buildkite artifacts
This commit is contained in:
Cole Helbling 2023-01-04 10:10:11 -08:00 committed by GitHub
parent 14cb35b3e4
commit 33390d0c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -1,4 +1,13 @@
steps:
- label: nix-installer-x86_64-darwin
agents:
mac: 1
system: x86_64-darwin
nix: 1
command:
- nix --extra-experimental-features "nix-command flakes" build .#packages.x86_64-darwin.nix-installer -L
- cp result/bin/nix-installer ./nix-installer-x86_64-darwin
- buildkite-agent artifact upload nix-installer-x86_64-darwin
- label: nix-installer-aarch64-darwin
agents:
mac: 1

28
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Release
permissions:
contents: write
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download Buildkite Artifacts
uses: EnricoMi/download-buildkite-artifact-action@v1.14
with:
buildkite_token: ${{ secrets.BUILDKITE_TOKEN }}
output_path: artifacts
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
artifacts/**
nix-installer.sh