Publish PWA to Github Pages #17
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: Publish PWA to Github Pages | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
Build: | |
name: Publish PWA to Github Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📦 Checkout project repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 📦 Setup Bun + install deps | |
uses: ./.github/actions/setup-bun-install | |
- name: ⚙️ Run Prebuild | |
run: bunx tailwind -o node_modules/.cache/nativewind/global.css.web.css && bun export | |
shell: bash | |
- name: 📱 Publish web app | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |