Skip to content

Commit

Permalink
Renamed the job to build-and-deploy to avoid reserved keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyByansi authored Jun 30, 2024
1 parent a93555c commit 2dc2ad4
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/ISSUE_TEMPLATE/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ on:
- README.md

jobs:
deploy:
build-and-deploy:
runs-on: ubuntu-latest

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

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Generate index.html from README
run: |
echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>README</title></head><body>' > index.html
cat README.md | markdown >> index.html
echo '</body></html>' >> index.html
- name: Convert README to HTML
run: |
echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>README</title></head><body>' > index.html
cat README.md | markdown >> index.html
echo '</body></html>' >> index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: false
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: false

0 comments on commit 2dc2ad4

Please sign in to comment.