This repository has been archived by the owner on May 21, 2024. It is now read-only.
forked from ifahrentholz/eds-editorial
-
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.
Merge pull request #16 from LoomingEcho/feature/one-branch-only
Feature/one branch only
- Loading branch information
Showing
7 changed files
with
239 additions
and
245 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mountpoints: | ||
/: https://drive.google.com/drive/u/0/folders/1DwCBUbNOdH6vJvbsJ1VOsEwx22492YiC |
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
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 |
---|---|---|
|
@@ -14,26 +14,34 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
sparse-checkout: | | ||
dist | ||
|
||
- name: Install dependency's | ||
run: cd npm -ci | ||
|
||
- name: Change fstab.yml to prod | ||
run: | | ||
rm fstab.yaml | ||
cp .github/fstab_prod.yml fstab.yml | ||
- name: Build prod dist | ||
run: npm run build | ||
|
||
- name: Checkout prod repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: LoomingEcho/eds-prod | ||
path: eds-prod | ||
ref: stage | ||
token: ${{ secrets.CD_TOKEN }} | ||
path: prod | ||
ref: prod | ||
|
||
- name: Remove dist from prod | ||
run: rm -rf eds-prod/dist | ||
run: rm -rf prod/dist | ||
|
||
- name: Copy dist from dev to prod stage | ||
run: cp -r dist eds-prod/ | ||
run: cp -r dist prod/ | ||
|
||
- name: Commit and push to prod repository | ||
run: | | ||
cd eds-prod | ||
cd prod | ||
git add -f ./dist | ||
git config --global user.name "EDS CI/CD" | ||
git config --global user.email "[email protected]" | ||
git add dist | ||
|
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
Oops, something went wrong.