diff --git a/.devops/sync-github.yml b/.devops/sync-github.yml new file mode 100644 index 0000000..d5fdd72 --- /dev/null +++ b/.devops/sync-github.yml @@ -0,0 +1,19 @@ +# Automatically sync main branch to GitHub on tag + +trigger: + tags: + include: + - '*' + +pool: + vmImage: 'ubuntu-22.04' + +steps: + - checkout: self + fetchTags: true + + - script: | + git remote add github 'https://$(GITHUB_PAT)@$(GITHUB_URL)' + git push github main + git push github $(Build.SourceBranchName) + displayName: 'Sync repository with GitHub'