update build file

This commit is contained in:
lanxu 2024-05-01 21:50:33 +03:00
parent 4e24c3178f
commit ab585df66a

View File

@ -1,17 +1,16 @@
name: Rust
name: Build and Publish
on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
@ -33,3 +32,15 @@ jobs:
run: |
npm install
npx webpack
- name: Github Pages - Setup
uses: actions/configure-pages@v5
- name: Github Pages - Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./www/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4