Skip to content

Commit

Permalink
Try something else
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielgerez committed Jun 10, 2024
1 parent 5ac5549 commit 2ec8039
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 66 deletions.
66 changes: 0 additions & 66 deletions .github/workflows/build-PR.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .github/workflows/preview.yml
name: Deploy PR previews

env:
ZOLA_VERSION: "0.17.2"
# MAIN_BRANCH: "main"
# TARGET_BRANCH: "gh-pages"
# CNAME: "hpc.uit.no"
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

concurrency: preview-${{ github.ref }}

jobs:
deploy-preview:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install zola
run: |
set -x
wget -O - \
"https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \
| sudo tar xzf - -C /usr/local/bin
- name: Generate HTML
run: zola build
# Add CNAME, either (first one used)
# - file in the root
# - the environment variable set above
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./public

0 comments on commit 2ec8039

Please sign in to comment.