Initial commit. #1
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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test-build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.1 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: | | |
bun install | |
- name: Build | |
run: | | |
bun run build | |
- name: Change base-tag in index.html from / to conjugador | |
run: sed -i 's/<base href="\/" \/>/<base href="\/conjugador\/" \/>/g' build/index.html | |
- name: Generate build info | |
run: | | |
echo "{\"sha\": \"${{ github.sha }}\", \"ref\": \"${{ github.ref_name }}\", \"actor\": \"${{ github.actor }}\"}" > build/build-info.json | |
- name: Generate .nojekyll | |
run: | | |
echo "" > build/.nojekyll | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.7 | |
with: | |
branch: gh-pages | |
folder: build |