mirror of
				https://github.com/McShelby/hugo-theme-relearn.git
				synced 2025-11-04 02:04:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Release
 | 
						|
 | 
						|
on:
 | 
						|
  workflow_dispatch:
 | 
						|
    inputs:
 | 
						|
      milestone:
 | 
						|
        description: 'Milestone for this release'
 | 
						|
        required: true
 | 
						|
 | 
						|
jobs:
 | 
						|
  release:
 | 
						|
    name: Run release
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - name: Checkout repo
 | 
						|
        uses: actions/checkout@v2
 | 
						|
        with:
 | 
						|
          submodules: true  # Fetch Hugo themes (true OR recursive)
 | 
						|
          fetch-depth: 0    # Fetch all history for .GitInfo and .Lastmod
 | 
						|
 | 
						|
      - name: Check milestone
 | 
						|
        id: check
 | 
						|
        uses: ./.github/actions/check_milestone
 | 
						|
        with:
 | 
						|
          milestone: ${{ github.event.inputs.milestone }}
 | 
						|
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
						|
 | 
						|
      - name: Create release
 | 
						|
        if: ${{ steps.check.outputs.outcome == 'success' }}
 | 
						|
        uses: ./.github/actions/release_milestone
 | 
						|
        with:
 | 
						|
          milestone: ${{ github.event.inputs.milestone }}
 | 
						|
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
						|
 | 
						|
      # We need to deploy the site again to show the updated changelog
 | 
						|
      - name: Build site
 | 
						|
        uses: ./.github/actions/build_site
 | 
						|
 | 
						|
      - name: Deploy site
 | 
						|
        uses: ./.github/actions/deploy_site
 | 
						|
        with:
 | 
						|
          github_token: ${{ secrets.GITHUB_TOKEN }}
 |