2020-12-04 10:59:49 +03:00
|
|
|
name: release
|
2020-11-25 17:33:52 +03:00
|
|
|
|
2020-12-04 11:20:48 +03:00
|
|
|
on:
|
|
|
|
release: null
|
|
|
|
push:
|
|
|
|
tags: ['*']
|
2020-11-25 17:33:52 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
upload:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { os: ubuntu-latest, system: x86_64-linux }
|
|
|
|
- { os: macos-latest, system: x86_64-darwin }
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: cachix/install-nix-action@v12
|
|
|
|
- uses: cachix/cachix-action@v8
|
|
|
|
with:
|
2021-01-13 15:33:09 +03:00
|
|
|
name: ${{ secrets.CACHIX_NAME }}
|
2020-11-25 17:33:52 +03:00
|
|
|
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
|
|
|
|
|
|
- uses: google-github-actions/setup-gcloud@v0.2.0
|
|
|
|
with:
|
|
|
|
version: '290.0.1'
|
|
|
|
service_account_key: ${{ secrets.GCS_SERVICE_ACCOUNT_KEY }}
|
|
|
|
project_id: ${{ secrets.GCS_PROJECT }}
|
|
|
|
export_default_credentials: true
|
|
|
|
|
2020-12-04 10:59:49 +03:00
|
|
|
- run: nix-build -A tarball --arg enableStatic true
|
2020-11-25 17:33:52 +03:00
|
|
|
|
|
|
|
- name: Run upload to bootstrap.urbit.org
|
|
|
|
run: |
|
|
|
|
version="$(cat ./pkg/urbit/version)"
|
|
|
|
system="$(nix eval --raw '(builtins.currentSystem)')"
|
|
|
|
target="gs://bootstrap.urbit.org/ci/urbit-v${version}-${system}-${GITHUB_SHA:0:9}.tgz"
|
|
|
|
|
|
|
|
gsutil cp -n ./result "$target"
|
|
|
|
|
|
|
|
echo "upload to $target complete."
|