dekanbro is deploying to out Web3 π #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |