diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..f96b923c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: build_cyb + +on: + push: + branches: + - main + +jobs: + build_app: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.14.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Set environment variable with commit SHA + run: | + echo "COMMIT_SHA=${{ github.sha }}" >> $GITHUB_ENV + + - name: Install dependencies + run: | + cd ./front + yarn install + + - name: Build app + run: | + cd ./front + yarn install + + - name: Verify build directory + run: | + ls -la + echo "Contents of front directory:" + ls -al front + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} + BRANCH: build + FOLDER: ./front + CLEAN: true diff --git a/README.md b/README.md index fe66b09d..62d86c7c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # ton-connect-wasm -Dapp to utilize telegram wallet connection to cyber passport with abillity to create a cyberlinks. +Dapp to utilize telegram wallet connection to cyber passport with abillity to create a cyberlinks