mirror of
				https://github.com/inventree/inventree-website.git
				synced 2025-11-04 07:25:46 +00:00 
			
		
		
		
	update action
This commit is contained in:
		
							
								
								
									
										32
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/deploy.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
name: Build pages and publish
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ main ]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - uses: ruby/setup-ruby@v1
 | 
			
		||||
        with:
 | 
			
		||||
          ruby-version: 2.7
 | 
			
		||||
          bundler-cache: true
 | 
			
		||||
      - name: Setup Node
 | 
			
		||||
        uses: actions/setup-node@v2
 | 
			
		||||
        with:
 | 
			
		||||
          node-version: '14'
 | 
			
		||||
      - run: npm install
 | 
			
		||||
      - name: 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_branch: 'gh-pages'
 | 
			
		||||
          publish_dir: ./_site
 | 
			
		||||
							
								
								
									
										30
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/gh-pages.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,30 +0,0 @@
 | 
			
		||||
name: Build pages and publish
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ main ]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - uses: actions/cache@v2
 | 
			
		||||
      with:
 | 
			
		||||
        path: |
 | 
			
		||||
          vendor/bundle
 | 
			
		||||
          ~/.npm
 | 
			
		||||
          node_modules
 | 
			
		||||
          */*/node_modules
 | 
			
		||||
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
 | 
			
		||||
        restore-keys: |
 | 
			
		||||
          ${{ runner.os }}-gems-
 | 
			
		||||
    - uses: helaili/jekyll-action@2.2.0
 | 
			
		||||
      with:
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        target_branch: 'gh-pages'
 | 
			
		||||
        pre_build_commands: |
 | 
			
		||||
          apk add --update npm
 | 
			
		||||
          npm install
 | 
			
		||||
		Reference in New Issue
	
	Block a user