-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace CircleCI with GitHub Actions (#709)
* Add GitHub Actions workflow * Bump pnpm/action-setup and add dependabot config * Minor tweaks
- Loading branch information
Showing
3 changed files
with
52 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and deploy | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build and deploy | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Cache Node dependencies | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: pnpm | ||
|
||
- name: Cache Rust workspace | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: rust | ||
|
||
- name: Install Node dependencies | ||
run: pnpm install | ||
|
||
- name: Run build | ||
run: pnpm run build | ||
|
||
- name: Deploy | ||
if: github.ref == 'refs/heads/master' | ||
uses: burnett01/rsync-deployments@7.0.1 | ||
with: | ||
switches: -va --delete-after --exclude=data/ --exclude=priv/ --exclude=.well-known/ | ||
path: dist/ | ||
remote_path: noclip.website/ | ||
remote_host: iad1-shared-e1-29.dreamhost.com | ||
remote_user: gznoclip | ||
remote_key: ${{ secrets.DEPLOY_KEY }} |