Add a release task
This commit is contained in:
		@@ -2,6 +2,8 @@ name: Build
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - '**'
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: [master]
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										23
									
								
								.gitea/workflows/release.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.gitea/workflows/release.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
name: Release
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
      - '**'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  release:
 | 
			
		||||
    runs-on: haskell
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Set up environment
 | 
			
		||||
        run: |
 | 
			
		||||
          apt-get update -y
 | 
			
		||||
          apt-get upgrade -y
 | 
			
		||||
          apt-get install -y nodejs pkg-config
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - name: Upload a candidate
 | 
			
		||||
        env:
 | 
			
		||||
          HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
 | 
			
		||||
        run: |
 | 
			
		||||
          cabal sdist
 | 
			
		||||
          cabal upload --username belka --password ${HACKAGE_PASSWORD}
 | 
			
		||||
		Reference in New Issue
	
	Block a user