-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1018 Bytes
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: GitHub Pages
on:
push:
branches:
- main
tags:
- "*"
jobs:
build_and_deploy_main:
name: Rust project for main branch
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: jetli/[email protected]
with:
version: "latest"
- run: rustup target add wasm32-unknown-unknown
- run: trunk build --release
- name: Copy policy.html
run: cp ./policy.html ./dist/policy.html
- name: Copy terms.html
run: cp ./terms.html ./dist/terms.html
- name: Copy tonconnect-manifest.json
run: cp ./tonconnect-manifest.json ./dist/tonconnect-manifest.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./dist
keep_files: true