Skip to content

actions: add deploy pipeline #1

actions: add deploy pipeline

actions: add deploy pipeline #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # Change this to match the branch you want to deploy from
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dioxus CLI
run: |
# Install Dioxus CLI
cargo install dioxus-cli
- name: Build with Dioxus
run: |
# Build your application with dx
dx build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
clean: true