Deploy with Omnipin #23
Workflow file for this run
This file contains hidden or 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 with Omnipin | |
| on: | |
| # Allow for manual triggering | |
| workflow_dispatch: | |
| # Automatically trigger at 9:30am UTC on the 1st of each month | |
| schedule: | |
| - cron: '30 9 1 * *' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install Omnipin | |
| run: pnpm i -g omnipin@2.0.3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - name: Build website | |
| run: pnpm i && pnpm run build | |
| - name: Deploy the site | |
| run: omnipin deploy src/dist \ | |
| --strict \ | |
| --ens ${{ vars.OMNIPIN_ENS }} \ | |
| --safe ${{ vars.OMNIPIN_SAFE }} \ | |
| env: | |
| # Storacha for uploads | |
| OMNIPIN_STORACHA_TOKEN: ${{ secrets.OMNIPIN_STORACHA_TOKEN }} | |
| OMNIPIN_STORACHA_PROOF: ${{ secrets.OMNIPIN_STORACHA_PROOF }} | |
| # Filecoin for uploads | |
| # OMNIPIN_FILECOIN_TOKEN: ${{ secrets.OMNIPIN_FILECOIN_TOKEN }} | |
| # Lighthouse for pinning | |
| OMNIPIN_LIGHTHOUSE_TOKEN: ${{ secrets.OMNIPIN_LIGHTHOUSE_TOKEN }} | |
| # Wallet that proposes transactions to the Safe | |
| OMNIPIN_PK: ${{ secrets.OMNIPIN_PK }} |