Skip to content

Log out user if Metamask is locked #94

Log out user if Metamask is locked

Log out user if Metamask is locked #94

Workflow file for this run

name: Flutter Web Build and Deploy
on:
push:
branches:
- main # Replace with your main branch name
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build Flutter Web
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.1'
- name: Install dependencies
run: flutter pub get
- name: Run build_runner
run: flutter pub run build_runner build
- name: Build Flutter Web
run: flutter build web --release --base-href /
- name: Set up node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Generate Solidity docs
run: (cd smart_contract && ./create-html-docs.sh && mv docs/index.html ../build/web/smart_contract_docs.html)
- name: Upload Web Build Files
uses: actions/upload-artifact@v2
with:
name: web-release
path: ./build/web
deploy:
name: Deploy Web Build on gh-pages
runs-on: ubuntu-latest
needs: build
steps:
- name: Download Web Release
uses: actions/download-artifact@v2
with:
name: web-release
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
# upload entire directory
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2