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-19 16:53:32 +00:00
|
|
|
id-token: write # In order to request a JWT for AWS auth
|
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-16 19:41:16 +00:00
|
|
|
- name: Configure AWS Credentials
|
|
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
|
|
with:
|
|
|
|
role-to-assume: ${{ secrets.AWS_S3_UPLOAD_ROLE }}
|
|
|
|
aws-region: us-east-2
|
|
|
|
- name: Publish Release to S3 (Tag)
|
|
|
|
env:
|
|
|
|
AWS_BUCKET: ${{ secrets.AWS_S3_UPLOAD_BUCKET }}
|
|
|
|
run: |
|
2023-01-20 17:42:14 +00:00
|
|
|
./upload_s3.sh "$GITHUB_REF_NAME" "$GITHUB_SHA" "https://install.determinate.systems/nix/tag/$GITHUB_REF_NAME"
|
2023-01-16 19:41:16 +00:00
|
|
|
- name: Publish Release to GitHub (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
|
2023-01-20 19:13:05 +00:00
|
|
|
- name: Install Instructions (Tag)
|
|
|
|
run: |
|
|
|
|
cat <<EOF
|
|
|
|
This tag can be installed by running the following command:
|
|
|
|
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/tag/$GITHUB_REF_NAME | sh -s -- install
|
|
|
|
EOF
|