Skip to content

Commit

Permalink
Try staging cd
Browse files Browse the repository at this point in the history
  • Loading branch information
pkong-ds committed May 23, 2024
1 parent 81e4234 commit 0548a9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set env to staging
run: |
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "ENV=dev" >> $GITHUB_ENV
echo "ENV=staging" >> $GITHUB_ENV
elif [[ "${{ github.ref_name }}" == "production" ]]; then
echo "ENV=production" >> $GITHUB_ENV
fi
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PAGESHIP_API := https://api.pages.pandawork.com
ifeq ($(GITHUB_REF_NAME),production)
ENV ?= $(GITHUB_REF_NAME)
else
ENV ?= dev
ENV ?= staging
endif

ifeq (${ACTIONS_ID_TOKEN_REQUEST_URL},)
Expand Down
8 changes: 4 additions & 4 deletions pageship.staging.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[app]
id = "mockuphone-staging-clone"
id = "mockuphone-staging"

team = [
# Allow GitHub Actions in your repo to deploy
Expand All @@ -15,9 +15,9 @@ team = [
[[app.sites]]
name = "main"

# [[app.domains]]
# domain = "staging.mockuphone.com"
# site = "main"
[[app.domains]]
domain = "staging.mockuphone.com"
site = "main"

[site]
public = "dist"
Expand Down

0 comments on commit 0548a9b

Please sign in to comment.