42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
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: 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: |
|
|
./upload_s3.sh "$GITHUB_REF_NAME" "$GITHUB_SHA"
|
|
- name: Publish Release to GitHub (Tag)
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
fail_on_unmatched_files: true
|
|
draft: true
|
|
files: |
|
|
artifacts/**
|
|
nix-installer.sh
|