-
Notifications
You must be signed in to change notification settings - Fork 71
44 lines (39 loc) · 1.2 KB
/
publish_plugins.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
37
38
39
40
41
42
43
44
name: Publish Built-in Plugins
on:
release:
types:
- published
pull_request:
jobs:
publish:
name: Publish plugins
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: nightly-2024-10-15
- name: Init Scarb to cache plugins
id: scarb-init
run: |
set -eo pipefail
mkdir -p $HOME/pkg
pushd $HOME/pkg
scarb init --no-vcs
echo "CAIRO_VERSION=$(scarb metadata --format-version 1 | jq -r '.app_version_info.cairo.version')" >> $GITHUB_OUTPUT
popd
env:
SCARB_INIT_TEST_RUNNER: cairo-test
- name: Publish plugins from cache
run: |
set -eo pipefail
pushd $HOME/.cache/scarb/registry/std/7a2cdc90b
for package_dir in *; do
if [ -d "$package_dir" ] && [ "$package_dir" != "core" ]; then
pushd "$package_dir"
scarb publish --index https://scarbs.dev --no-verify
popd
fi
done
env:
SCARB_REGISTRY_AUTH_TOKEN: ${{ secrets.SCARB_REGISTRY_AUTH_TOKEN }}