mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Rework website update workflow (#1851)
This commit is contained in:
		
							
								
								
									
										14
									
								
								.github/workflows/build_push.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								.github/workflows/build_push.yml
									
									
									
									
										vendored
									
									
								
							@@ -120,16 +120,4 @@ jobs:
 | 
			
		||||
            mihon-x86_64-${{ env.VERSION_TAG }}.apk
 | 
			
		||||
          draft: true
 | 
			
		||||
          prerelease: false
 | 
			
		||||
        env:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
      - name: Update website
 | 
			
		||||
        if: startsWith(github.ref, 'refs/tags/') && github.repository == 'mihonapp/mihon'
 | 
			
		||||
        run: |
 | 
			
		||||
          curl -L \
 | 
			
		||||
          -X POST \
 | 
			
		||||
          -H "Accept: application/vnd.github+json" \
 | 
			
		||||
          -H "Authorization: Bearer ${{ secrets.MIHON_BOT_TOKEN }}" \
 | 
			
		||||
          -H "X-GitHub-Api-Version: 2022-11-28" \
 | 
			
		||||
          https://api.github.com/repos/mihonapp/website/dispatches \
 | 
			
		||||
          -d '{"event_type":"app_release"}'
 | 
			
		||||
          token: ${{ secrets.MIHON_BOT_TOKEN }}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								.github/workflows/update_website.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/update_website.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
name: Update website
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  release:
 | 
			
		||||
    types: 
 | 
			
		||||
      - published
 | 
			
		||||
      - deleted
 | 
			
		||||
      - edited
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  update_website:
 | 
			
		||||
    runs-on: 'ubuntu-24.04'
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Update website
 | 
			
		||||
        run: |
 | 
			
		||||
          curl --fail-with-body -L \
 | 
			
		||||
          -X POST \
 | 
			
		||||
          -H "Accept: application/vnd.github+json" \
 | 
			
		||||
          -H "Authorization: Bearer ${{ secrets.MIHON_BOT_TOKEN }}" \
 | 
			
		||||
          -H "X-GitHub-Api-Version: 2022-11-28" \
 | 
			
		||||
          https://api.github.com/repos/mihonapp/website/dispatches \
 | 
			
		||||
          -d '{"event_type":"app_release"}'
 | 
			
		||||
		Reference in New Issue
	
	Block a user