-
Notifications
You must be signed in to change notification settings - Fork 30
36 lines (31 loc) · 968 Bytes
/
gallery.yml
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
name: Project Gallery
on:
pull_request:
push:
branches:
- main
jobs:
web:
strategy:
matrix:
example-name: ["cargo-new"]
name: project-gallery
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install wrangler
run: npm install -g wrangler
- name: Install oranda
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/oranda/releases/download/v0.1.0-prerelease.7/oranda-installer.sh | sh
- name: Build and deploy example
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: |
cd project-gallery/${{ matrix.example-name }} && oranda build
wrangler pages deploy public --project-name ${{ matrix.example-name }}