Skip to content

Commit

Permalink
Dry run on non-main
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste committed Apr 10, 2024
1 parent 08e4f26 commit 21e85f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-simulator.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish Simulator
on:
push:
branches: [main]
paths:
- simulator/**
pull_request:

jobs:
build:
Expand All @@ -20,7 +18,7 @@ jobs:
- name: Build simulator
run: |
cd simulator
npm ci
npm install
npm run build
touch dist/.nojekyll
Expand All @@ -31,6 +29,7 @@ jobs:
path: "dist/"

deploy:
if: github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion simulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Simulate your badge on the interwebz.

## Additional Features

- [ ] Live reload
- [x] Live reload

0 comments on commit 21e85f2

Please sign in to comment.