Skip to content

dekanbro is deploying to out Web3 πŸš€ #52

dekanbro is deploying to out Web3 πŸš€

dekanbro is deploying to out Web3 πŸš€ #52

Workflow file for this run

name: Deploy to Web3
run-name: ${{ github.actor }} is deploying to out Web3 πŸš€
on:
push:
branches: main
jobs:
Deploy-To-Web3-Storage:
runs-on: ubuntu-latest
steps:
- run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
- run: echo "🍏 This job's status is ${{ job.status }}."
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: rm -rf node_modules && yarn install --frozen-lockfile
- name: Create env file
run: |
touch .env
echo VITE_RIVET_KEY=${{ secrets.VITE_RIVET_KEY }} >> .env
echo VITE_WALLET_CONNECT_ID=${{ secrets.VITE_WALLET_CONNECT_ID }} >> .env
- run: yarn build
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- uses: web3-storage/add-to-web3@v2
id: web3
with:
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
path_to_add: 'dist'
# "bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
- run: echo ${{ steps.web3.outputs.cid }}
# "https://dweb.link/ipfs/bafkreicysg23kiwv34eg2d7qweipxwosdo2py4ldv42nbauguluen5v6am"
- run: echo ${{ steps.web3.outputs.url }}