Skip to content

Commit

Permalink
feat: actions to build and deploy the website
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier2p committed Jan 5, 2024
1 parent d9d0cdf commit 0683181
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Deploy Helix Website
name: Build and Deploy Helix Website

on:
push:
Expand All @@ -8,14 +8,15 @@ on:

permissions:
contents: write
packages: write

jobs:
deploy:
name: Deploy
static:
name: Deploy static website on GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build
working-directory: website
Expand All @@ -26,3 +27,32 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/dist

package:
name: Build Docker image for Helix Website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.actor }}/helix-website

0 comments on commit 0683181

Please sign in to comment.