Added publish steps
This commit is contained in:
		
							
								
								
									
										12
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							@@ -9,7 +9,10 @@ jobs:
 | 
			
		||||
    build:
 | 
			
		||||
        name: Build NPM Project
 | 
			
		||||
        runs-on: ubuntu-latest
 | 
			
		||||
        container: node
 | 
			
		||||
        container:
 | 
			
		||||
            image: node
 | 
			
		||||
            volumes:
 | 
			
		||||
                - '/mnt/swarm/gitea/runner/cache:/cache'
 | 
			
		||||
        steps:
 | 
			
		||||
            -   name: Clone Repository
 | 
			
		||||
                uses: ztimson/actions/clone@develop
 | 
			
		||||
@@ -54,11 +57,14 @@ jobs:
 | 
			
		||||
                    tag: ${{env.VERSION}}
 | 
			
		||||
 | 
			
		||||
    publish:
 | 
			
		||||
        name: Tag Version
 | 
			
		||||
        name: Publish
 | 
			
		||||
        needs: build
 | 
			
		||||
        if: ${{github.ref_name}} == 'release'
 | 
			
		||||
        runs-on: ubuntu-latest
 | 
			
		||||
        container: node
 | 
			
		||||
        container:
 | 
			
		||||
            image: node
 | 
			
		||||
            volumes:
 | 
			
		||||
                - '/mnt/swarm/gitea/runner/cache:/cache'
 | 
			
		||||
        steps:
 | 
			
		||||
            -   name: Clone Repository
 | 
			
		||||
                uses: ztimson/actions/clone@develop
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user