-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
32 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -29,50 +29,25 @@ jobs: | |
key: node_modules.-${{ hashFiles('package-lock.json') }} | ||
path: node_modules | ||
|
||
build: | ||
needs: dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Retrieve cached dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
key: node_modules-${{ hashFiles('package-lock.json') }} | ||
path: node_modules | ||
- name: Override .env | ||
uses: SpicyPizza/[email protected] | ||
with: | ||
envkey_VITE_APP_API: ${{ secrets.REACT_APP_API_RECETTE }} | ||
envkey_VITE_APP_PIX_CAMPAGNE_URL: ${{ secrets.REACT_APP_PIX_CAMPAGNE_URL }} | ||
file_name: .env | ||
- name: copy robots.txt | ||
uses: canastro/copy-file-action@master | ||
with: | ||
source: "desindexation/robots.txt" | ||
target: "public/robots.txt" | ||
- name: Build application | ||
run: npm run build | ||
- name: copy .htaccess | ||
- name: Copy robots.txt | ||
uses: canastro/copy-file-action@master | ||
with: | ||
source: ".htaccess" | ||
target: "dist/.htaccess" | ||
- name: Upload release bundle as artifact | ||
uses: actions/upload-artifact@v4 | ||
source: desindexation/robots.txt | ||
target: dist/robots.txt | ||
- name: Copy .htaccess | ||
uses: canastro/copy-file-action@master | ||
with: | ||
name: bundle | ||
path: dist/* | ||
source: .htaccess | ||
target: dist/.htaccess | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Retrieve bundle React | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: bundle | ||
path: dist | ||
- name: Deploy on clever cloud | ||
uses: s0/git-publish-subdir-action@develop | ||
env: | ||
|