Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
ci: only deploy if certain files has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixselve committed Jan 24, 2024
1 parent a388de6 commit 0ef35a0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-publish-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ name: Create and publish a Docker image
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['release']
branches: ['main']
paths:
- "packages/server/**"
- "packages/shared/**"
- "./package*.json"

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- "packages/client/**"
- "packages/shared/**"
- "./package*.json"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .idea/SR-projet.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import handleFrame from "./handleFrame.js";

const io = new Server({
cors: {
origin: "*",
origin: "*", //TODO: change this to the actual frontend url
},
});

Expand Down

0 comments on commit 0ef35a0

Please sign in to comment.