Skip to content

Commit

Permalink
Fixed pipeline bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepPork committed Mar 15, 2019
1 parent 30041cc commit 0c14db6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ release: clean version commit
@"$(MAKE)" $(MAKEFLAGS) signatures
@echo " ZIP $(ZIP)_$(VERSION_F).zip"
@cp mod.cpp README.md AUTHORS.txt LICENSE logo_achilles_ca.paa $(BIN)
@zip -qr $(ZIP)_$(VERSION_F)-$(GIT_HASH).zip $(BIN)
@mkdir release
@zip -qr release/$(ZIP)_$(VERSION_F)-$(GIT_HASH).zip $(BIN)

clean:
rm -rf $(BIN) $(ZIP)_*.zip
rm -rf $(BIN) release/$(ZIP)_*.zip $(ZIP)_*.zip

.PHONY: all filepatching signatures extensions extensions-win64 version commit push release clean
10 changes: 9 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ jobs:
make -j 4
displayName: 'Build with armake'
- task: PublishPipelineArtifact@0
inputs:
targetPath: release/

- job: Deploy
dependsOn:
- Test
- Package
steps:
- script: "curl -F 'zip=@$(ls *.zip | head -n1)' -F 'accessToken=$(access.token)' $(access.url)"
- task: DownloadPipelineArtifact@0
inputs:
targetPath: $(System.DefaultWorkingDirectory)

- script: "cd release && curl -F 'zip=@$(ls *.zip | head -n1)' -F 'accessToken=$(access.token)' $(access.url)"
displayName: 'Upload files'

0 comments on commit 0c14db6

Please sign in to comment.