mirror of
				https://github.com/metagov/govarch-website.git
				synced 2025-10-30 04:12:11 +00:00 
			
		
		
		
	Add new workflow file for github actions
This commit is contained in:
		
							
								
								
									
										37
									
								
								.github/workflows/jekyll-github-pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/jekyll-github-pages.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,37 +0,0 @@ | |||||||
| name: Build and Deploy a Jekyll Site to GitHub Pages |  | ||||||
|  |  | ||||||
| on: |  | ||||||
|   push: |  | ||||||
|     branches: |  | ||||||
|       - main |  | ||||||
|  |  | ||||||
| jobs: |  | ||||||
|   jekyll: |  | ||||||
|     runs-on: macos-latest |  | ||||||
|     steps: |  | ||||||
|       - name: 📂 setup |  | ||||||
|         uses: actions/checkout@v2 |  | ||||||
|  |  | ||||||
|         # include the lines below if you are using jekyll-last-modified-at |  | ||||||
|         # or if you would otherwise need to fetch the full commit history |  | ||||||
|         # however this may be very slow for large repositories! |  | ||||||
|         # with: |  | ||||||
|         # fetch-depth: '0' |  | ||||||
|       - name: 💎 setup ruby |  | ||||||
|         uses: ruby/setup-ruby@v1 |  | ||||||
|         with: |  | ||||||
|           ruby-version: 3.2 |  | ||||||
|  |  | ||||||
|       - name: 🔨 install dependencies & build site |  | ||||||
|         uses: limjh16/jekyll-action-ts@v2 |  | ||||||
|         with: |  | ||||||
|           enable_cache: true |  | ||||||
|  |  | ||||||
|       - name: 🚀 deploy |  | ||||||
|         uses: peaceiris/actions-gh-pages@v3 |  | ||||||
|         with: |  | ||||||
|           github_token: ${{ secrets.GITHUB_TOKEN }} |  | ||||||
|           publish_dir: ./_site |  | ||||||
|           # if the repo you are deploying to is <username>.github.io, uncomment the line below. |  | ||||||
|           # if you are including the line below, make sure your source files are NOT in the "main" branch: |  | ||||||
|           # publish_branch: main |  | ||||||
							
								
								
									
										26
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | |||||||
|  | name: Jekyll Deploy | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build_and_deploy: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - name: GitHub Checkout | ||||||
|  |         uses: actions/checkout@v1 | ||||||
|  |       - name: Bundler Cache | ||||||
|  |         uses: actions/cache@v1 | ||||||
|  |         with: | ||||||
|  |           path: vendor/bundle | ||||||
|  |           key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||||||
|  |           restore-keys: | | ||||||
|  |             ${{ runner.os }}-gems- | ||||||
|  |       - name: Build & Deploy to GitHub Pages | ||||||
|  |         uses: joshlarsen/jekyll4-deploy-gh-pages@master | ||||||
|  |         env: | ||||||
|  |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |           GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | ||||||
|  |           GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | ||||||
		Reference in New Issue
	
	Block a user