Skip to content

Commit

Permalink
Copy docs approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwcarlson committed Oct 27, 2023
1 parent d495036 commit 2620723
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: "[SETUP] 1. Checkout repo"
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: "[SETUP] 2. Set up Homebrew"
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -64,11 +64,11 @@ jobs:
upsun org:info -o $TEST_ORG_NAME name
- name: "[SETUP] 6. Authenticate Upsun CLI for pushes"
run: |
upsun ssh-cert:load --new -y
touch ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh-keyscan ssh.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
ssh-keyscan git.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
upsun ssh-cert:load --new -y
touch ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
ssh-keyscan ssh.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
ssh-keyscan git.$TEST_PROJECT_REGION.platform.sh -v >> ~/.ssh/known_hosts
################################################################################################
# B. Setting up test project.
- name: "[PROJECT] 1. Create a project in the test org."
Expand All @@ -85,6 +85,9 @@ jobs:
echo "::notice::Verifying local repo."
ls -a
git branch
# git checkout ${{ github.event.pull_request.head.sha }}
# echo "::notice::Switching to branch ${{ env.TEST_PROJECT_DEFAULT_BRANCH }}"
# git switch -C $TEST_PROJECT_DEFAULT_BRANCH
- name: "[PROJECT] 3. Set remote."
run: |
echo "::notice::Setting remote for the project locally."
Expand All @@ -94,9 +97,12 @@ jobs:
run: |
echo "::notice::First push to project."
# cat ~/.ssh/known_hosts
git checkout $TEST_PROJECT_DEFAULT_BRANCH
git pull origin $TEST_PROJECT_DEFAULT_BRANCH
upsun push -y
# git checkout $TEST_PROJECT_DEFAULT_BRANCH
# git pull origin $TEST_PROJECT_DEFAULT_BRANCH
git checkout ${{ github.event.pull_request.head.sha }}
echo "::notice::Switching to branch ${{ env.TEST_PROJECT_DEFAULT_BRANCH }}"
git switch -C $TEST_PROJECT_DEFAULT_BRANCH
upsun push -f -y
################################################################################################
# C. First deploy.
Expand Down

0 comments on commit 2620723

Please sign in to comment.