mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Merge pull request #332 from crystal-ameba/Sija/update-ci-definitions
This commit is contained in:
		
						commit
						c02f7fdc33
					
				
					 3 changed files with 18 additions and 16 deletions
				
			
		
							
								
								
									
										7
									
								
								.github/dependabot.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.github/dependabot.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
version: 2
 | 
			
		||||
updates:
 | 
			
		||||
  # Maintain dependencies for GitHub Actions
 | 
			
		||||
  - package-ecosystem: github-actions
 | 
			
		||||
    directory: /
 | 
			
		||||
    schedule:
 | 
			
		||||
      interval: daily
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -17,17 +17,15 @@ jobs:
 | 
			
		|||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Install Crystal
 | 
			
		||||
        uses: oprypin/install-crystal@v1
 | 
			
		||||
        uses: crystal-lang/install-crystal@v1
 | 
			
		||||
        with:
 | 
			
		||||
          crystal: ${{ matrix.crystal }}
 | 
			
		||||
 | 
			
		||||
      - name: Download source
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: shards install
 | 
			
		||||
        env:
 | 
			
		||||
          SHARDS_OPTS: --ignore-crystal-version
 | 
			
		||||
 | 
			
		||||
      - name: Run specs
 | 
			
		||||
        run: make test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										21
									
								
								.github/workflows/docs.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/docs.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -9,20 +9,18 @@ jobs:
 | 
			
		|||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Inject slug/short variables
 | 
			
		||||
        uses: rlespinasse/github-slug-action@v3.x
 | 
			
		||||
        uses: rlespinasse/github-slug-action@v4
 | 
			
		||||
 | 
			
		||||
      - name: Install Crystal
 | 
			
		||||
        uses: oprypin/install-crystal@v1
 | 
			
		||||
        uses: crystal-lang/install-crystal@v1
 | 
			
		||||
 | 
			
		||||
      - name: Download source
 | 
			
		||||
        uses: actions/checkout@v2
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        with:
 | 
			
		||||
          persist-credentials: false
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: shards install
 | 
			
		||||
        env:
 | 
			
		||||
          SHARDS_OPTS: --ignore-crystal-version
 | 
			
		||||
 | 
			
		||||
      - name: Build docs
 | 
			
		||||
        run: |
 | 
			
		||||
| 
						 | 
				
			
			@ -30,7 +28,7 @@ jobs:
 | 
			
		|||
          crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
 | 
			
		||||
 | 
			
		||||
      - name: Upload artifacts
 | 
			
		||||
        uses: actions/upload-artifact@v2
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        with:
 | 
			
		||||
          name: docs
 | 
			
		||||
          path: docs
 | 
			
		||||
| 
						 | 
				
			
			@ -40,15 +38,14 @@ jobs:
 | 
			
		|||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Download artifacts
 | 
			
		||||
        uses: actions/download-artifact@v2
 | 
			
		||||
        uses: actions/download-artifact@v3
 | 
			
		||||
        with:
 | 
			
		||||
          name: docs
 | 
			
		||||
          path: docs
 | 
			
		||||
 | 
			
		||||
      - name: Deploy docs 🚀
 | 
			
		||||
        uses: JamesIves/github-pages-deploy-action@3.7.1
 | 
			
		||||
        uses: JamesIves/github-pages-deploy-action@4
 | 
			
		||||
        with:
 | 
			
		||||
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
          BRANCH: gh-pages
 | 
			
		||||
          FOLDER: docs
 | 
			
		||||
          CLEAN: true
 | 
			
		||||
          branch: gh-pages
 | 
			
		||||
          folder: docs
 | 
			
		||||
          clean: true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue