Skip to content

Commit

Permalink
local dire add in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdoulrachard committed Apr 1, 2024
1 parent 6132a7b commit e4a83b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ jobs:
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🛠️ Install Packages and Build Application

- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: 🔨 Build Project
run: |
npm install
npm install
npm run build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER}}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./dist/
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
},
server: {
cors: {
origin: 'https://cche-ch.com', // Remplacez par l'origine de votre application Vue.js
origin: 'https://cche-ch.com',
methods: ['GET', 'POST', 'PUT', 'DELETE'],
allowedHeaders: ['Content-Type', 'Authorization'],
},
Expand Down

0 comments on commit e4a83b4

Please sign in to comment.