diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 12410e0a8..9de7b99cc 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -16,6 +16,14 @@ jobs: with: registry-username: ${{ github.actor }} registry-access-token: ${{ secrets.GITHUB_TOKEN }} + - name: Deploy to Cloudflare Pages + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./dist/browser --project-name=dashboard + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + packageManager: npm # - name: Set config # run: | # printf "$APP_ENV_FILE" > dist/browser/assets/appConfig.json @@ -74,14 +82,16 @@ jobs: # directory: 'dist/browser' # gitHubToken: ${{ secrets.GITHUB_TOKEN }} # branch: main - # notify: - # name: Notify - # runs-on: ubuntu-latest - # needs: [build] - # steps: - # - uses: actions/checkout@v4 - # - uses: valitydev/action-mattermost-notify@v0.1.4 - # with: - # webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - # channel: 'frontend' - # username: 'Frontend' + notify: + name: Notify + runs-on: ubuntu-latest + needs: [build] + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: valitydev/action-mattermost-notify@v0.1.4 + with: + webhook: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + channel: 'frontend' + username: 'Frontend'