Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: Install dependencies
run: make install

- name: Build the website
run: make build MODE=production

- name: Set up SSH key
uses: webfactory/[email protected]
with:
Expand All @@ -44,5 +41,7 @@ jobs:
- name: ssh keyscan
run: ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts

- name: Deploy to server
- name: Build and Deploy to server
env:
MODE: "production"
run: make deploy FORCE_DEPLOY=true
11 changes: 3 additions & 8 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ jobs:
- name: Install dependencies
run: make install

- name: Build the website
env:
BRANCH: "${{ env.GITHUB_BRANCH_NAME }}"
GIT_VERSION: "${{ env.GITHUB_COMMIT_HASH }}"
MODE: "preview"
run: make build

- name: Set up SSH key
uses: webfactory/[email protected]
with:
Expand All @@ -51,9 +44,11 @@ jobs:
- name: ssh keyscan
run: ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts

- name: Upload preview
- name: Build and upload preview
env:
BRANCH: "${{ env.GITHUB_BRANCH_NAME }}"
GIT_VERSION: "${{ env.GITHUB_COMMIT_HASH }}"
MODE: "preview"
run: make preview

- name: Get safe branch and export to env
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/update-data.yml

This file was deleted.

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ build:

preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)
preview: build
preview:
@echo "Preview site URL: $(PREVIEW_SITE_URL)"
echo $(TARGET)
Expand All @@ -72,6 +73,7 @@ ls -1dt */ \
ifeq ($(FORCE_DEPLOY), true)
deploy: RELEASES_DIR = $(VPS_PROD_PATH)/releases
deploy: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)
deploy: build
deploy:
@echo "\n\n**** Deploying branch '$(BRANCH)' (safe: $(SAFE_BRANCH)) to $(TARGET)...\n\n"
$(REMOTE_CMD) "mkdir -p $(TARGET)"
Expand Down