d410728461
* release: create releases for specified branches * release: split action into one for branches, one for tags * release: change the NIX_INSTALLER_BINARY_ROOT upon release This way, we can be sure we use the right binaries to match the script.
32 lines
902 B
YAML
32 lines
902 B
YAML
name: Release Tags
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write # In order to upload artifacts to GitHub releases
|
|
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: Fixup URL in nix-installer.sh
|
|
run: |
|
|
sed -i "s@https://install.determinate.systems/nix@https://install.determinate.systems/nix/tag/$GITHUB_REF_NAME@" nix-installer.sh
|
|
- name: Publish Release (Tag)
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
fail_on_unmatched_files: true
|
|
draft: true
|
|
files: |
|
|
artifacts/**
|
|
nix-installer.sh
|