Skip to content

Commit

Permalink
deplyo to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jun 19, 2024
1 parent 6ebde8e commit a8c56ff
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 1 deletion.
69 changes: 69 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Deploy CI

on:
workflow_dispatch:
push:
pull_request:
branches: [main]

env:
CARGO_TERM_COLOR: always

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal

- name: Install Nodejs
uses: actions/setup-node@v4
with:
node-version: "20.x"

- name: Install trunk
uses: jetli/trunk-action@v0.1.0
with:
version: "latest"

- name: Install PNPM
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Compile css files
run: pnpm run css

- name: Build
run: trunk build --release --public-url=/

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
pull_request:
branches: [master]
branches: [main]

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf-8" />
<link data-trunk rel="rust"/>

<title>Rust Dasturlash Tili - O'zbek Jamiyati</title>
<link data-trunk rel="sass" href="style/output.css" />
<link data-trunk rel="copy-dir" href="static">
Expand Down

0 comments on commit a8c56ff

Please sign in to comment.