2023-01-09 16:28:39 +00:00
|
|
|
name: Release Tags
|
2023-01-04 18:10:11 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*.*.*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-09 16:28:39 +00:00
|
|
|
permissions:
|
|
|
|
contents: write # In order to upload artifacts to GitHub releases
|
2023-01-04 18:10:11 +00:00
|
|
|
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
|
2023-01-09 16:28:39 +00:00
|
|
|
- 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)
|
2023-01-04 18:10:11 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
with:
|
|
|
|
fail_on_unmatched_files: true
|
2023-01-04 19:06:28 +00:00
|
|
|
draft: true
|
2023-01-04 18:10:11 +00:00
|
|
|
files: |
|
|
|
|
artifacts/**
|
|
|
|
nix-installer.sh
|