From d93f931e7d580dc14d5d65da4fe6596ce4b3a640 Mon Sep 17 00:00:00 2001 From: Angus Chiu Date: Fri, 2 Aug 2024 18:49:28 +0100 Subject: [PATCH] updated CI --- .github/workflows/ci.yml | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1bd1ae2..eebb262 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,32 +2,33 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Set up Rust - uses: dtolnay/rust-toolchain@stable - with: - targets: wasm32-unknown-unknown - toolchain: stable - - name: Install Trunk - run: cargo install trunk - - name: Build and Deploy - run: trunk build --release - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: wasm32-unknown-unknown + toolchain: stable + - name: Install Trunk + run: cargo install trunk + - name: Build and Deploy + run: trunk build --release + # - name: Deploy to GitHub Pages + # uses: peaceiris/actions-gh-pages@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./dist + - name: Run another action + uses: ./.github/workflows/static.yml