Skip to content

Commit

Permalink
added workflow to deloy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu999 committed Dec 1, 2024
1 parent 4507e4f commit 6fef78a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.' # Upload the entire repository

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

permissions:
contents: read
pages: write
id-token: write
2 changes: 1 addition & 1 deletion snake_game.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>Snake_Game</title>
<style>
#myCanvas {
background-image: url("./Assets/bg.jpg");
background-image: url("Assets/bg.jpg");
border: 10px solid green;
}
</style>
Expand Down

0 comments on commit 6fef78a

Please sign in to comment.