fix master branch e2e #2143
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: remix-publish-action | |
| on: | |
| pull_request: | |
| types: [ labeled ] | |
| jobs: | |
| build: | |
| if: ${{ github.event.label.name == 'publish' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| - run: yarn install | |
| - run: ls | |
| - run: pwd | |
| - run: yarn run build:production | |
| - run: echo "action_state=$('./apps/remix-ide/ci/publishIpfs' ${{ secrets.IPFS_PROJET_ID }} ${{ secrets.IPFS_PROJECT_SECRET }})" >> $GITHUB_ENV | |
| - uses: mshick/add-pr-comment@v2 | |
| with: | |
| message: | | |
| ipfs://${{ env.action_state }} | |
| https://remix-project.infura-ipfs.io/ipfs/${{ env.action_state }} | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens | |
| allow-repeats: false # This is the default | |