Skip to content

Commit

Permalink
Added GitHub Pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChickChicky committed Jul 24, 2024
1 parent 0aea3f5 commit 007e4e1
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy to GitHub Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Set Up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Build Project
run: |
chmod +x tasks/*.sh
tasks/build.sh
tasks/gendisk.sh
echo y | npx tsx src/assembler/assembler.ts src/assembler/draw.asm boot.bin
sudo tasks/updboot.sh
- name: Upload artifact
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

0 comments on commit 007e4e1

Please sign in to comment.