You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
name: Main Deploy Workflow
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches:
 | 
						|
      - main
 | 
						|
      - pangea-merge
 | 
						|
 | 
						|
jobs:
 | 
						|
  deploy_web:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v2
 | 
						|
      - run: cat .github/workflows/versions.env >> $GITHUB_ENV
 | 
						|
      - run: echo "$WEB_APP_ENV"
 | 
						|
      - run: echo "$WEB_APP_ENV" > .env
 | 
						|
      - uses: subosito/flutter-action@v2
 | 
						|
        with:
 | 
						|
          flutter-version: ${{ env.FLUTTER_VERSION }}
 | 
						|
          cache: true
 | 
						|
      - name: Install dependencies
 | 
						|
        run: sudo apt-get update && sudo apt-get install nodejs -y
 | 
						|
      - run: flutter pub get
 | 
						|
      - name: Prepare web
 | 
						|
        run: ./scripts/prepare-web.sh
 | 
						|
      - name: Build Release Web
 | 
						|
        run: ./scripts/build-web.sh
 | 
						|
      - name: Build Website
 | 
						|
        run: |
 | 
						|
          mv build/web public
 | 
						|
          mv .env public/.env          
 | 
						|
      - run: cat public/.env
 | 
						|
      - name: Deploy to GitHub Pages
 | 
						|
        uses: peaceiris/actions-gh-pages@v3
 | 
						|
        with:
 | 
						|
          personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
 | 
						|
          publish_dir: ./public
 | 
						|
          publish_branch: gh-pages
 | 
						|
          # cname: app.staging.pangea.chat.im
 | 
						|
 | 
						|
  update_sentry:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v3
 | 
						|
        with:
 | 
						|
          fetch-depth: 0
 | 
						|
 | 
						|
      - name: Create Sentry release
 | 
						|
        uses: getsentry/action-release@v1
 | 
						|
        env:
 | 
						|
          SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
 | 
						|
          SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
 | 
						|
          SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
 | 
						|
          # SENTRY_URL: https://sentry.io/
 | 
						|
        with:
 | 
						|
          environment: staging
 |