This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
51 lines (50 loc) · 1.52 KB
/
dist.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: dist
on:
push:
branches:
- main
- "**"
- release-candidate/**
jobs:
dist:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-11]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Cache Yarn
uses: actions/cache@v2
with:
path: |
~/cache/yarn
# Reuses cache from `build` workflow
key: build-${{ runner.os }}-yarn-v5-${{ hashFiles('yarn.lock') }}
- name: Cache Rust
uses: actions/cache@v2
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git
./target/*/deps
./target/*/build
./target/*/.fingerprint
key: ${{ github.job }}-${{ runner.os }}-rust-v9-${{ hashFiles('Cargo.lock', 'rust-toolchain') }}
- run: ci/dist.sh
- name: publish artifacts by commit
uses: google-github-actions/[email protected]
with:
path: artifacts
destination: radicle-upstream-build-artifacts/v1/by-commit/${{ github.sha }}
credentials: ${{ secrets.GCP_SECRET_KEY }}
parent: false
- name: publish main artifacts
if: ${{ github.ref == 'refs/heads/main' }}
uses: google-github-actions/[email protected]
with:
path: artifacts
destination: radicle-upstream-build-artifacts/v1/main/
credentials: ${{ secrets.GCP_SECRET_KEY }}
parent: false