This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
remove and ignore codewithrockstar.com/wasm #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Check failure on line 33 in .github/workflows/pages.yml GitHub Actions / .github/workflows/pages.ymlInvalid workflow file
|
||
# 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 | ||
working-directory: ./codewithrockstar.com | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v4 | ||
with: | ||
working-directory: ./codewithrockstar.com | ||
- name: Build with Jekyll | ||
# Outputs to the './_site' directory by default | ||
working-directory: ./codewithrockstar.com | ||
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 | ||
with: | ||
path: ./codewithrockstar.com/_site | ||
# 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 |