Skip to content

Commit 81cf44e

Browse files
authored
ci: create pipeline (#1)
1 parent 172d7d9 commit 81cf44e

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎.github/workflows/pipeline.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pipeline
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
check:
11+
# Raycast library downloads what seems to be a proprietary binary that doesn't work
12+
# (not out-of-the-box at least) on ubuntu machines, so use macos
13+
runs-on: macos-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 16.x
20+
- run: npm install
21+
- run: npm run lint
22+
- run: npm run build

‎.scripts/raycast-publish.sh‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ echo "Publish $EXTENSION_VERSION to $RAYCAST_EXTENSIONS_DIR"
77

88
cd "$(dirname "${BASH_SOURCE[0]}")/.." || exit
99
rm -rf "$RAYCAST_EXTENSIONS_DIR/extensions/sourcegraph"
10-
rsync -rv --exclude=.git --exclude=.gitignore --exclude=node_modules --exclude=.scripts \
10+
rsync -rv \
11+
--exclude=.git \
12+
--exclude=.gitignore \
13+
--exclude=node_modules \
14+
--exclude=.scripts \
15+
--exclude=.github \
1116
./ "$RAYCAST_EXTENSIONS_DIR/extensions/sourcegraph"
1217

1318
pushd "$RAYCAST_EXTENSIONS_DIR" || exit

0 commit comments

Comments
 (0)