mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 04:19:22 +03:00
Merge pull request #4024 from urbit/bh/disable-pr-upload
build: disable ci release tarball upload on pull request
This commit is contained in:
commit
ae1af6e6f8
43
.github/workflows/build.yml
vendored
43
.github/workflows/build.yml
vendored
@ -30,11 +30,9 @@
|
|||||||
#
|
#
|
||||||
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
|
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
|
||||||
|
|
||||||
name: Build, test, and upload urbit release tarball
|
name: build
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push: null
|
|
||||||
pull_request: null
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
urbit:
|
urbit:
|
||||||
@ -81,40 +79,3 @@ jobs:
|
|||||||
- run: nix-build -A hs.urbit-king.components.exes.urbit-king --arg enableStatic true
|
- run: nix-build -A hs.urbit-king.components.exes.urbit-king --arg enableStatic true
|
||||||
- run: nix-build -A hs-checks
|
- run: nix-build -A hs-checks
|
||||||
- run: nix-build shell.nix
|
- run: nix-build shell.nix
|
||||||
|
|
||||||
upload:
|
|
||||||
needs: [urbit, haskell]
|
|
||||||
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:
|
|
||||||
name: mars
|
|
||||||
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
|
|
||||||
|
|
||||||
- run: nix-build -A tarball
|
|
||||||
|
|
||||||
- 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."
|
|
||||||
|
43
.github/workflows/release.yml
vendored
Normal file
43
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release: null
|
||||||
|
push:
|
||||||
|
tags: ['*']
|
||||||
|
|
||||||
|
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:
|
||||||
|
name: mars
|
||||||
|
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
|
||||||
|
|
||||||
|
- run: nix-build -A tarball --arg enableStatic true
|
||||||
|
|
||||||
|
- 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."
|
Loading…
Reference in New Issue
Block a user