From: Vincent Fu Date: Mon, 8 Aug 2022 17:51:51 +0000 (+0000) Subject: ci: upload tagged AppVeyor installers as GitHub releases X-Git-Tag: test-tag-2022-08-09~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=13ceeb098527ee99d0cabe248eba70e9d2fa2aa8;p=fio.git ci: upload tagged AppVeyor installers as GitHub releases Deploy Windows installers built by AppVeyor as releases on GitHub. This process is triggered only when tags are uploaded to the repository. Patch was created using this guide: https://www.appveyor.com/docs/deployment/github/ - Generate a GitHub authentication token with public_repo scope: https://github.com/settings/tokens - Login to AppVeyor and encrypt GitHub token: Account -> Encrypt YAML https://ci.appveyor.com/tools/encrypt - Insert encrypted token in appveyor.yml on the secure: line under auth_token: With APPVEYOR_REPO_TAG set to true only tags pushed to GitHub will have Cygwin MSI installers uploaded as releases to GitHub. Signed-off-by: Vincent Fu Link: https://lore.kernel.org/r/20220808175133.37920-2-vincent.fu@samsung.com [axboe: replace token with right one] Signed-off-by: Jens Axboe --- diff --git a/.appveyor.yml b/.appveyor.yml index b94eefe3..e55fc3d1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -50,5 +50,18 @@ after_build: test_script: - python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug +deploy: + - provider: GitHub + description: fio Windows installer + auth_token: # encrypted token from GitHub + secure: Tjj+xRQEV25P6dQgboUblTCKx/LtUOUav2bvzSCtwMhHMAxrrn2adod6nlTf0ItV + artifact: fio.msi # upload installer to release assets + draft: false + prerelease: false + on: + branch: master # release from this branch only + APPVEYOR_REPO_TAG: true # deploy on tag push only + DISTRO: cygwin + on_finish: - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -d test-artifacts ] && 7z a -t7z test-artifacts.7z test-artifacts -xr!foo.0.0 -xr!latency.?.0 -xr!fio_jsonplus_clat2csv.test && appveyor PushArtifact test-artifacts.7z'