Skip to content

Commit 26ff909

Browse files
committed
chore: implement Launching transactions from dApp
1 parent 180dab1 commit 26ff909

File tree

6 files changed

+59
-9
lines changed

6 files changed

+59
-9
lines changed

.github/workflows/deploy.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v2
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 16
22+
23+
- name: Install dependencies
24+
uses: bahmutov/npm-install@v1
25+
26+
- name: Build project
27+
run: npm run build
28+
29+
- name: Upload production-ready build files
30+
uses: actions/upload artifact@v2
31+
with:
32+
name: production-files
33+
path: ./dist
34+
35+
deploy:
36+
name: Deploy
37+
needs: build
38+
runs-on: ubuntu-latest
39+
if: github.ref == 'refs/heads/main'
40+
41+
steps:
42+
- name: Download artifact
43+
uses: actions/download-artifact@v2
44+
with:
45+
name: production-files
46+
path: ./dist
47+
48+
- name: Deploy to GitHub Pages
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: ./dist
File renamed without changes.

public/manifest.json

-5
This file was deleted.

public/tonconnect-manifest.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"url": "https://github.com/cronnoss",
3+
"name": "CRONNOSS",
4+
"iconUrl": "https://cronnoss.github.io/counter-front-end/icon.png"
5+
}

src/main.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import App from './App';
33
import './index.css';
44
import {TonConnectUIProvider} from '@tonconnect/ui-react';
55

6-
// this manifest is used temporarily for development purposes
7-
const manifestUrl =
8-
'https://raw.githubusercontent.com/ton-community/tutorials/main/03-client/test/public/tonconnect-manifest.json';
6+
const manifestUrl = 'https://cronnoss.github.io/counter-front-end/tonconnect-manifest.json';
97

108
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
119
<TonConnectUIProvider manifestUrl={manifestUrl}>

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import {nodePolyfills} from 'vite-plugin-node-polyfills';
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react(), nodePolyfills()],
8-
base: '/',
8+
base: '/counter-front-end/',
99
})

0 commit comments

Comments
 (0)