Merge pull request #2055 from web3privacy/undecidedpathways-patch-1 #4681
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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main # Set a branch to deploy | |
| pull_request: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - uses: szenius/[email protected] | |
| with: | |
| timezoneLinux: "Europe/Prague" | |
| - name: Cache | |
| run: make cache | |
| #- name: Test | |
| # run: make test | |
| - name: Build bundle | |
| run: make build | |
| - name: Add custom domain | |
| run: "touch dist/CNAME && echo \"explorer-data.web3privacy.info\" >> dist/CNAME" | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./dist |