Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Add a thing

Add a thing #53

Workflow file for this run

name: Deploy Jekyll site to Pages
on:
# Run after the engine is rebuilt
workflow_run:
workflows: ['build-and-test-engine']
types: [completed]
branches: ['main']
# Run after any website source files are changed
push:
branches: ["main"]
paths:
- 'codewithrockstar.com/**'
- '.github/workflows/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# engine:
# uses: ./.github/workflows/01-build-and-test-rockstar-engine.yml
# Build job
build:
runs-on: ubuntu-latest
# needs: engine
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Download WASM engine
# uses: actions/download-artifact@v4
# with:
# name: rockstar_wasm
# path: |
# codewithrockstar.com/wasm/wwwroot/_framework
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
working-directory: ./codewithrockstar.com
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4