Skip to content

build(coredao-testnet): fix tar name #8

build(coredao-testnet): fix tar name

build(coredao-testnet): fix tar name #8

name: Deploy to Core Mainnet
on:
push:
tags:
- 'm*'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
ARCHIVE_NAME: ${{ github.event.repository.name }}
name: Deploy to mainnet
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
# Post a PR comment before deploying
- name: Post a comment while building
if: github.event.number
uses: mshick/add-pr-comment@v2
with:
message-id: praul
message: |
## Branch preview
⏳ Deploying a preview site...
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token-user-login: 'github-actions[bot]'
- uses: actions/checkout@v3
- uses: ./.github/workflows/yarn
- uses: ./.github/workflows/build
with:
secrets: ${{ toJSON(secrets) }}
prod: ${{ true }}
- name: Create archive
run: tar -czvf safe.tar.gz dist
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
tag_name: ${{ env.RELEASE_VERSION}}
release_name: ${{ env.RELEASE_VERSION}}
body: |
draft: false
prerelease: false
files: |
safe.tar.gz
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: coredao-org/coredao-infra
event-type: explorer-front-deploy
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "project_name": "safe-wallet-web", "static_path": "safe"}'