Skip to content

create a.out

create a.out #360

Workflow file for this run

name: Update docs and demo
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- 'README.md'
- 'demo/snake.zip'
- 'demo/qr.png'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: $GITHUB_WORKFLOW
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt install qrencode nasm python3 -y
nasm snake.asm -o snake.com
gcc -Os -w -xc - <<< "main;"
xxd -p snake.com | python3 docs/update.py
qrencode -r snake.com -8 -o demo/qr.png
zip demo/snake.zip snake.com
git config --global user.email "$GITHUB_REPOSITORY_OWNER_ID+$GITHUB_REPOSITORY_OWNER@users.noreply.github.com"
git config --global user.name "$GITHUB_REPOSITORY_OWNER"
git add .
git commit -m "${GITHUB_WORKFLOW,,}"
git push
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: 'demo/'
- uses: actions/deploy-pages@v4